Cpghstore

cpghstore is a fast decoder/encoder of the PostgreSQL hstore data type.
Alternatives To Cpghstore
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Ruby Pg713281,7092,1928 days ago84June 24, 202214otherC
A PostgreSQL client library for Ruby
Pgproto31202,122a year ago27September 17, 20222mitGo
Decoderbufs113
5 years ago2mitC
INACTIVE: A PostgreSQL logical decoder output plugin to deliver data as Protocol Buffers
Pgwire56
4 months ago11March 28, 20218mitJavaScript
PostgreSQL client library for Deno and Node.js that exposes all features of wire protocol.
Decoder_json26
7 years agounlicenseC
PostgreSQL logical decoder to JSON
Hstore Extension16
8 months ago4July 24, 20191mitPHP
The encoder/decoder and set of the doctrine functions for the postgresql type `hstore`
Cpghstore5
8 years ago1April 03, 20122Python
cpghstore is a fast decoder/encoder of the PostgreSQL hstore data type.
Parselogical3
6 years agoGo
Parse the output of Postgres' logical test_decoder.
Pg_replicatelogical3
6 years agoGo
Replicate DBs using Postgres' built-in test_decoder logical replication plugin.
Baan Utf T Decoder2
3 years agolgpl-3.0C
Decoding UTF-T texts in PostgreSQL
Alternatives To Cpghstore
Select To Compare


Alternative Project Comparisons
Readme

cpghstore

Info: cpghstore is a fast decoder/encoder of the PostgreSQL hstore data type (http://www.postgresql.org/docs/9.0/static/hstore.html).
Author: Robert Kajic (http://github.com/kajic)

About

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).

Installation

Run pip install cpghstore or download the source from GitHub and run python setup.py install.

Usage

Decode 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"'

Tests

To run the test suite, run python setup.py test.

Benchmark

Run python setup.py test -s benchmark to see how it performs (requires pghstore to be installed if you want comparisons to be shown).

Limitations

Supports only str strings (i.e. not unicode strings). Can only decode (loads) string values, i.e. "key"=>"123" is supported while "key"=>123 is not.

Popular Postgresql Projects
Popular Decoder Projects
Popular Data Storage Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Python
Postgresql
Decoder
Encoder