Add example of messagepack
This commit is contained in:
9
Messaging/messagepackex.py
Normal file
9
Messaging/messagepackex.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import umsgpack
|
||||
|
||||
binary = umsgpack.packb({"compact": True, "schema": [0, False]})
|
||||
|
||||
obj = umsgpack.unpackb(binary)
|
||||
|
||||
print(obj)
|
||||
|
||||
print(obj['schema'])
|
||||
Reference in New Issue
Block a user