Skip to main content

thrift_json

https://img.shields.io/pypi/v/thrift_json.svg https://img.shields.io/travis/youngking/thrift_json.svg Updates

converter between thrift and json

  • Free software: MIT license

Usage

  • convert from json/dict to thrift

    >>> from thrift_json import json2thrift, dict2thrift
    >>> thrift_obj = json2thrift(json_str, thrift_class)
    >>> thrift_obj = dict2thrift(dict_obj, thrift_class)
    
  • convert from thrift to json/dict

    >>> from thrift_json import thrift2json, thrift2dict
    >>> json_str = thrfit2json(thrift_obj)
    >>> dict_obj = thrift2dict(thrift_obj)
    
  • encode/decode use json directly

    >>> from thrift_json import ThriftJSONEncoder
    >>> json_str = json.dumps(thrift_obj, cls=ThriftJSONEncoder)
    
    >>> from thrift_json import ThriftJSONDecoder
    >>> thrift_obj = json.loads(json_str, cls=ThriftJSONDecoder, thrift_class=thrift_class)
    

History

0.1.0 (2016-07-11)

  • First release on PyPI.

Metadata

Release files for thrift_json 0.1.0

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

Source distribution (sdist)

Source distribution for thrift_json 0.1.0
File Size Uploaded Provenance
thrift_json-0.1.0.tar.gz 16.1 kB Without provenance Details

Release files / thrift_json-0.1.0.tar.gz

Download URL thrift_json-0.1.0.tar.gz
Size 16.1 kB
Tags Source
SHA-256 checksum
How to use checksums
db9cad32ca818963dc14508a8840aa2ce8353c5f0ab7a6c7b69f0f02bf86700c
BLAKE2b-256 checksum
How to use checksums
0ab5d8fab97674502dcb2d00b03806600dfabfcfe76fd521611cfbd51a3b6feb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for thrift_json 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

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