cpghstoreFast postgres hstore parser | |
Download |
cpghstore Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- Robert Kajic
- Publisher web site:
- https://github.com/kajic/
cpghstore Tags
cpghstore Description
cpghstore is written in C and is meant to be a faster alternative to pghstore. Run python setup.py test -s benchmark to see how it performs (requires pghstore to be installed if you want comparisons to be shown).InstallationRun pip install cpghstore or download the source from GitHub and run python setup.py install.UsageDecode and encode hstore string:>>> import cpghstore>>> # decode>>> d = cpghstore.loads('"name"=>"Norge/Noreg"')>>> d{'name': 'Norge/Noreg'}>>> # encode>>> s = cpghstore.dumps(d)>>> s'"name"=>"Norge/Noreg"'TestsTo run the test suite, run python setup.py test.BenchmarkRun python setup.py test -s benchmark to see how it performs (requires pghstore to be installed if you want comparisons to be shown).Product's homepage
cpghstore Related Software