Gtgtgt
There are exhausting examples in the tests, but here's the quick rundown: from django.db import models from smart_slug.fields import SmartSlugField class Simple(models.Model): slug = SmartSlugField(max_length=5, underscores=False) class Complex(models.Model): title =...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (37): django-smart-slug Download |
This package provides a way to work with MIME content types. There are several interfaces defined here, many of which are used primarily to look things up based on different bits of information. The basic idea behind this is that content objects should provide an interface based on the actual...
Platforms: *nix
License: Freeware | Size: 61.44 KB | Download (41): zope.mimetype Download |
Upsidedown is a simple Python library that "flips" latin characters in a string to create an "upside-down" impression. It makes extensive use of compatible latin characters as encoded in Unicode. Example >>> import upsidedown >>> print upsidedown.transform('hello world!') ?*?Zpl?*a*o?s??...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (38): Upsidedown Download |
pyssc32 is a simple Python interface for controlling RC servos using the SSC32 controller. Example >>> import ssc32 >>> ssc = ssc32.SSC32('/dev/ttyUSB0', 115200, count=32) >>> ssc[2].position = 2000 >>> ssc[3].name = 'pan' >>> ssc[4].name = 'tilt' >>> pan_servo = ssc['pan'] >>> tilt_servo =...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (39): pyssc32 Download |
Example of usage: >>> from croniter import croniter >>> from datetime import datetime >>> base = datetime(2010, 1, 25, 4, 46) >>> iter = croniter('*/5 * * * *', base) # every 5 minites >>> print iter.get_next(datetime) # 2010-01-25 04:50:00 >>> print iter.get_next(datetime) # 2010-01-25 04:55:00...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (45): croniter for Linux Download |
celery is a distributed task queue framework for Django. Installation You can install celery either via the Python Package Index (PyPI) or from source. To install using pip,: $ pip install celery To install using easy_install,: $ easy_install celery If you have downloaded a source tarball...
Platforms: *nix
License: Freeware | Size: 716.8 KB | Download (40): celery for Linux Download |
loxun is a Python library that can be used to write large output in XML using Unicode and namespaces. Of course you can also use it for small XML output with plain 8 bit strings and no namespaces. Here is a very basic example. First you have create an output stream. In many cases this would be a...
Platforms: *nix
License: Freeware | Size: 20.48 KB | Download (33): loxun Download |
Redisco is a Python module that allows you to store objects in _Redis: http://code.google.com/p/redis/. It is inspired by Ruby library _Ohm: http://github.com/soveran/ohm/ and its design and code are loosely based on Ohm and the Django ORM. It is built on top of _redis-py:...
Platforms: *nix
License: Freeware | Size: 20.48 KB | Download (33): redisco Download |
Bunch is a dictionary which supports attribute-style access, a la javascript. >>> b = Bunch() >>> b.hello = 'world' >>> b.hello 'world' >>> b['hello'] += "!" >>> b.hello 'world!' >>> b.foo = Bunch(lol=True) >>> b.foo.lol True >>> b.foo is b['foo'] True Dictionary Methods A Bunch is a subclass...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (39): Bunch for Linux Download |
The Web Application Description Language is an XML vocabulary for describing the capabilities of HTTP resources. wadllib can be used in conjunction with an HTTP library to navigate and manipulate those resources. An Application object represents a web service described by a WADL file. >>>...
Platforms: *nix
License: Freeware | Size: 30.72 KB | Download (40): wadllib Download |
MetaEnum is a Python libary. Example of use: class FOO(MetaEnum): BAZ = (0, 'bazik') BAR = 1 >>> FOO.BAZ 0 >>> FOO.BAR 1 >>> FOO.BAZ_name 'BAZ' >>> FOO.BAZ_verbose 'bazik' >>> FOO.get_verbose(FOO.BAZ) 'bazik' >>> FOO.get_verbose(FOO.BAR) None >>> FOO.as_choices() [(0, 'bazik'), (1, None)]...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (45): MetaEnum Download |
nimsp is a Python library for interacting with the National Institute on Money in State Politics API. nimsp is a project of Sunlight Labs. Written by Michael Stephens. Source: http://github.com/mikejs/python-nimsp Installation: To install from PyPI run pip install nimsp or easy_install...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (38): nimsp Download |
If you are a user of any kind of Python console that sports tab completion, you may have come to appreciate automatic attribute listing. This is, perhaps, the most immediately rewarding part of using ObDict. To begin magical experience, follow by example. Core Features This type wraps a given...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (44): ObDict Download |
This (very experimental) library allows you to install replacement stubs for httplib methods which record interactions with remote servers, and then play them back. Because urllib depends on httplib functionality, replaylib will record and play back urllib interactions as well. It is intended to...
Platforms: *nix
License: Freeware | Size: 20.48 KB | Download (39): replaylib Download |
A dingus is sort of like a mock object. The main difference is that you don't set up expectations ahead of time. You just run your code, using a dingus in place of another object or class, and it will record what happens to it. Then, once your code has been exercised, you can make assertions...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (46): dingus Download |
dupfind is a Python utility that allows you to find duplicated files and directories in your file system. Show how utility find duplicated files: By default utility identifies duplication files by file content. First of all - create several different files in the current directory. >>>...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (43): dupfinder for Linux Download |
Copies files to filenames based on their contents hashedassets is a command-line tool that copies files to filenames based on their contents. It also writes a map of what was renamed to what, so you can find your files. Main purpose of this is that you can add a far future Expires header to...
Platforms: *nix
License: Freeware | Size: 20.48 KB | Download (40): hashedassets Download |
Sendtools is a collections of classes for efficiently consuming iterators into one or more data structures. Sendtools compliments the itertools module and other the excellent facilities Python offers for iteration. Sendtools is useful when: * Your source iterator is too big to fit in memory *...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (40): Sendtools Download |
**django-picklefield** provides an implementation of a pickled object field. Such fields can contain any picklable objects. The implementation is taken and adopted from `Django snippet #1694 `_ by Taavi Taijala, which is in turn based on `Django snippet #513 `_ by Oliver Beattie....
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (41): django-picklefield Download |