Json library which enable user to parse and dump data with hex escape
Project description
Hexson
Json library designed for binary data processing.
Different from built-in json library, Hexson can encode invisible characters with hex escape instead of unicode escape.
Install
pip3 install hexson
Usage
loader & dumpper
json_dict = hexson.load(fd)
json_str = hexson.dump(json_dict, fd)
Elasticsearch serializer
es_conn = elasticsearch.Elasticsearch([{'host': cfg['es']['host'], 'port': cfg['es']['port']}],
http_auth=(cfg['es']['user'], cfg['es']['pass']),
timeout=60, serializer=hexson.JSONSerializer())
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hexson-0.0.4.tar.gz
(5.0 kB
view hashes)