Skip to main content

an implementation for hessian2

Project description

pyhessian2 is implemented for serialize and deserialize data in hessian2 protocol.

Usage

>>> # encoding
>>> from pyhessian2 import HessianObject, Encoder
>>> attrs = {
        "name": "xx",
        "age": 20,
    }
>>> obj = HessianObject("com.xx.person", attrs)
>>> data = Encoder().encode(obj)
>>> print "%r" % data
>>> # decoding
>>> from pyhessian2 import Decoder
>>> data = ...  # a hessian bytes data
>>> obj = Decoder().decoder(data)  # get a Hessianobject instance
>>> print obj  # print json serialized data

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

pyhessian2-2.0.1.tar.gz (6.7 kB view details)

Uploaded Source

File details

Details for the file pyhessian2-2.0.1.tar.gz.

File metadata

  • Download URL: pyhessian2-2.0.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyhessian2-2.0.1.tar.gz
Algorithm Hash digest
SHA256 7eaa7fe8e891481efd7db9431003c6a45f6e48492369a7c17e639c52ee42e05c
MD5 2a92e47e866f13af2b50bf2dc850c49f
BLAKE2b-256 1547d6ed99e70eeb5544f9d0ed09a797d954b564b5b634db6a62f2782f86d0ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page