pghstore 0.9.1
PostgreSQL hstore formatter
Latest Version: 0.9.2
This small module implements a formatter and a loader for hstore, one of PostgreSQL supplied modules, that stores simple key-value pairs.
>>> dumps({u'a': u'1'})
'"a"=>"1"'
>>> loads('"a"=>"1"')
{u'a': u'1'}
>>> src = [('pgsql', 'mysql'), ('python', 'php'), ('gevent', 'nodejs')]
>>> loads(dumps(src), return_type=list)
[(u'pgsql', u'mysql'), (u'python', u'php'), (u'gevent', u'nodejs')]
You can easily install the package from PyPI by using pip or easy_install:
$ pip install pghstore
Visit the website to read its documentation:
http://styleshare.github.com/pghstore/
Changelog
Version 0.9.1
Released on January 2, 2012.
- Now it is aware of NULL values. NULL values become None in Python and vice versa.
Version 0.9.0
Released on December 22, 2011.
- Initial version.
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| pghstore-0.9.1.tar.gz (md5) | Source | 2012-01-02 | 5KB | 267 | |
- Author: StyleShare
- Home Page: http://styleshare.github.com/pghstore/
- License: MIT License
-
Categories
- Development Status :: 4 - Beta
- Intended Audience :: Developers
- License :: OSI Approved :: MIT License
- Operating System :: OS Independent
- Programming Language :: Python :: 2.5
- Programming Language :: Python :: 2.6
- Programming Language :: Python :: 2.7
- Programming Language :: Python :: 2 :: Only
- Programming Language :: Python :: Implementation :: CPython
- Programming Language :: Python :: Implementation :: PyPy
- Programming Language :: Python :: Implementation :: Stackless
- Package Index Owner: dahlia
- DOAP record: pghstore-0.9.1.xml
