Registry / serialization / opack2

opack2

JSON →
library0.0.1pypypi✓ verified 82d ago

A Python library for parsing and serializing data in the opack format. Currently at version 0.0.1, with initial release. The library supports encoding/decoding of opack binary data.

pip install opack2
INSTALL
IMPORT
SIG · OPACK2
O
opack2
serializationpythonv0.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

dumps
from opack2 import dumps
from opack2 import pack
loads
from opack2 import loads
exceptions
from opack2 import exceptions

Basic usage of opack2 to pack and unpack data.

from opack2 import pack, unpack # Pack data data = {'key': 'value', 'number': 42} packed = pack(data) # Unpack data unpacked = unpack(packed) print(unpacked) # {'key': 'value', 'number': 42}
Debug
Known issues
gotchaDo not confuse opack2 with the older 'opack' package. They are separate libraries with different APIs.
fix
Use 'from opack2 import pack, unpack' instead of 'from opack import ...'.
affects: 0.0.1
gotchaThe library is in very early stage (v0.0.1). Breaking changes may occur without notice. Pin versions in production.
fix
Use 'opack2==0.0.1' in requirements.txt.
affects: 0.0.1
deprecatedNo deprecations at this version.
affects: 0.0.1
gotchaopack2 requires Python >=3.9. It will not work on older versions.
fix
Upgrade Python to 3.9 or later.
affects: 0.0.1
Upgrade
Version history
0.0.1latest on PyPI · released Dec 15, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
opack2 — pip install opack2 · libregistry