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.
- amsgpack-0.0.2/MANIFEST.in +1 -0
- amsgpack-0.0.2/PKG-INFO +7 -0
- amsgpack-0.0.2/README.md +25 -0
- amsgpack-0.0.2/amsgpack.c +1195 -0
- amsgpack-0.0.2/amsgpack.egg-info/PKG-INFO +7 -0
- amsgpack-0.0.2/amsgpack.egg-info/SOURCES.txt +12 -0
- amsgpack-0.0.2/amsgpack.egg-info/dependency_links.txt +1 -0
- amsgpack-0.0.2/amsgpack.egg-info/top_level.txt +1 -0
- amsgpack-0.0.2/deque.h +195 -0
- amsgpack-0.0.2/ext.h +105 -0
- amsgpack-0.0.2/pyproject.toml +23 -0
- amsgpack-0.0.2/setup.cfg +4 -0
- amsgpack-0.0.2/test/test_amsgpack.py +339 -0
- amsgpack-0.0.2/test/test_suite.py +103 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include *.h
|
amsgpack-0.0.2/PKG-INFO
ADDED
amsgpack-0.0.2/README.md
ADDED
|
@@ -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
|
+
```
|