Skip to main content

pghstore

Build Status

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:

https://pghstore.readthedocs.io/

Changelog

Version 2.0.2

  • Fixes a segmentation fault caused by trying to parse invalid HStore strings. See also (#13)

Version 2.0.1 (unreleased to PyPI)

  • Fixes a regression in behaviour with escape characters

Version 2.0.0 (unreleased to PyPI)

  • Supports Python 2.7+ and Python3.5+ both natively and with C extension

  • Drops support for Python 2.5 and 2.6

Version 0.9.2

Released on May 3, 2012.

  • Fixed escaping of quotes and backslshes. Patched by Dan Watson (#2).

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.

Release files for pghstore 2.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pghstore 2.0.2
File Size Uploaded
pghstore-2.0.2.tar.gz 12.6 kB Details

Release files / pghstore-2.0.2.tar.gz

Download URL pghstore-2.0.2.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c6d152d454b6fea8ec13a46ff754b2c6ca76aebe752068d4f8d8f6a948dd5436
BLAKE2b-256 checksum
How to use checksums
d7f324cec5054b4c076203bbf9e844e64809e28626027d3e92761c81673ad74d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

Release history Release notifications | RSS feed

This release

2.0.2 This release

1 release file

0.9.2

1 release file

0.9.1

1 release file

0.9.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page