amsgpack 0.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ include *.h
@@ -0,0 +1,7 @@
1
+ Metadata-Version: 2.4
2
+ Name: amsgpack
3
+ Version: 0.0.2
4
+ Summary: Another MessagePack library
5
+ Author-email: Arseniy Terekhin <senyai@gmail.com>
6
+ License: MIT
7
+ Requires-Python: >=3.10
@@ -0,0 +1,25 @@
1
+ ## Python Message Pack module
2
+
3
+ C library for python 3.10+.
4
+
5
+
6
+ ### Installation
7
+ `pip install amsgpack`
8
+
9
+
10
+ ### Example
11
+
12
+
13
+ ```Python console
14
+ >>> from amsgpack import packb
15
+ >>> packb({"compact": True, "schema": 0})
16
+ bytearray(b'\x82\xa7compact\xc3\xa6schema\x00')
17
+ ```
18
+
19
+ ```Python console
20
+ >>> from amsgpack import Unpacker
21
+ >>> unpacker = Unpacker()
22
+ >>> unpacker.feed(b'\x82\xa7compact\xc3\xa6schema\x00')
23
+ >>> next(unpacker)
24
+ {'compact': True, 'schema': 0}
25
+ ```