Skip to main content

polywrap-msgpack adds ability to encode/decode to/from msgpack format.

It provides msgpack_encode and msgpack_decode functions which allows user to encode and decode to/from msgpack bytes

It also defines the default Extension types and extension hook for custom extension types defined by WRAP standard

Quickstart

Encoding-Decoding Native types and objects

>>> from polywrap_msgpack import msgpack_decode, msgpack_encode
>>> dictionary = {
...     "foo": 5,
...     "bar": [True, False],
...     "baz": {
...         "prop": "value"
...     }
... }
>>> encoded = msgpack_encode(dictionary)
>>> decoded = msgpack_decode(encoded)
>>> assert dictionary == decoded
>>> print(decoded)
{'foo': 5, 'bar': [True, False], 'baz': {'prop': 'value'}}

Encoding-Decoding Extension types

>>> from polywrap_msgpack import msgpack_decode, msgpack_encode, GenericMap
>>> counter: GenericMap[str, int] = GenericMap({
...     "a": 3,
...     "b": 2,
...     "c": 5
... })
>>> encoded = msgpack_encode(counter)
>>> decoded = msgpack_decode(encoded)
>>> assert counter == decoded
>>> print(decoded)
GenericMap({'a': 3, 'b': 2, 'c': 5})

Metadata

Release files for polywrap-msgpack 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polywrap-msgpack 0.1.2
File Size Uploaded Provenance Actions
polywrap_msgpack-0.1.2.tar.gz 4.7 kB Without provenance Details for polywrap_msgpack-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for polywrap-msgpack 0.1.2
File Interpreter ABI Platform Actions
polywrap_msgpack-0.1.2-py3-none-any.whl Python 3 none any Details for polywrap_msgpack-0.1.2-py3-none-any.whl

Total release size: 12.0 kB

Release files / polywrap_msgpack-0.1.2.tar.gz

Download URL polywrap_msgpack-0.1.2.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
36cb8d708d77fda3426118cac9d714f33fd7b52d94873a1f66cb6d6d8b7d13ed
BLAKE2b-256 checksum
How to use checksums
b612fb57151fe572525eaaaa0b874cc8c062d8d462447369feeadb7bcd3438ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.12 Linux/5.15.0-1041-azure

Release files / polywrap_msgpack-0.1.2-py3-none-any.whl

Download URL polywrap_msgpack-0.1.2-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5bc6ac3d8b0e69e1256d5b91d6d6986f544383df6da90bba138b25a9864a6e8
BLAKE2b-256 checksum
How to use checksums
359816115b38843c8badc88b41c219a1f21cc7f5b3f14d817afa92bf2588d2ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.12 Linux/5.15.0-1041-azure

Security for polywrap-msgpack 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page