Skip to content
/ pybinn Public

Python 3.x wrapper for BINN binary serialization format

License

Notifications You must be signed in to change notification settings

meeron/pybinn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pybinn

Build Status

Python wrapper for BINN serialization (https://github.com/liteserver/binn)

Usage

Encoding

import pybinn

data = pybinn.dumps({'hello':"world", 'id':12})
print(data)
# b'\xe2\x16\x02\x02id \x0c\x05hello\xa0\x05world\x00'

Decoding

data = b'\xe2\x16\x02\x02id \x0c\x05hello\xa0\x05world\x00 '
obj = pybinn.loads(data)
print(obj)
# {'id': 12, 'hello': 'world'}

About

Python 3.x wrapper for BINN binary serialization format

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages