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
Release files for pyhessian2 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyhessian2-2.0.1.tar.gz | 6.7 kB | Details |
Release files / pyhessian2-2.0.1.tar.gz
| Download URL | pyhessian2-2.0.1.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7eaa7fe8e891481efd7db9431003c6a45f6e48492369a7c17e639c52ee42e05c
|
|
BLAKE2b-256 checksum How to use checksums |
1547d6ed99e70eeb5544f9d0ed09a797d954b564b5b634db6a62f2782f86d0ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |