Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for pyhessian2, version 2.0.1
Filename, size File type Python version Upload date Hashes
Filename, size pyhessian2-2.0.1.tar.gz (6.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page