Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Picopod

🐍 PyPI     📘 Documentation     🧑‍🎓 Examples     🔧 Contributing

Picopod is a Python library for working with Picotron pods, serialized objects which resemble Lua and also support embedded binary data. All pod features as of Picotron 0.3.0d are supported, including userdata and compression.

It's useful for working with data files for Picotron programs and writing servers that efficiently interact with Picotron clients. It is not a generic serialization library for arbitrary Python objects.

Python 3.12 or above is required, and full type annotations for type checkers are included. The only external dependency is the lz4 library needed to handle compressed pods.

Make sure to read the contribution guide before submitting issues or pull requests.

Basic Usage

You can install Picopod from PyPI using pip or another package manager:

pip install picopod

Then, use the pod() function to serialize values:

>>> from picopod import pod
>>> pod(1234)
b'1234'
>>> pod("Hello, world!")
b'"Hello, world!"'
>>> pod([1, 2, 3])
b'{1,2,3}'
>>> pod({"fullscreen": False, "pixel_scale": 3})
b'{fullscreen=false,pixel_scale=3}'

And use unpod() to deserialize them:

>>> from picopod import unpod
>>> unpod("1234")
1234
>>> unpod('"Hello, world!"')
'Hello, world!'
>>> unpod("{1,2,3}")
[1, 2, 3]
>>> unpod("{fullscreen=false,pixel_scale=3}")
{'fullscreen': False, 'pixel_scale': 3}

Refer to the documentation for more details.

License

Picopod is licensed under the terms of the MIT license.

Picopod is a community project. It is not affiliated with Lexaloffle.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

picopod-0.1.0b6.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

picopod-0.1.0b6-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

File details

Details for the file picopod-0.1.0b6.tar.gz.

File metadata

  • Download URL: picopod-0.1.0b6.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for picopod-0.1.0b6.tar.gz
Algorithm Hash digest
SHA256 ce6b33e5ef723d8a7d70fc3aeec128bd0d328f68840cc321a26d9fcdbde0751d
MD5 f71b49f38b705c2960a612dc32d5a5d0
BLAKE2b-256 aa0a3986e5fc43579e3ad672adaa483498d11c056ae3761fecdc9a23d51e7fdd

See more details on using hashes here.

Provenance

The following attestation bundles were made for picopod-0.1.0b6.tar.gz:

Publisher: python-package.yml on adierking/picopod

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file picopod-0.1.0b6-py3-none-any.whl.

File metadata

  • Download URL: picopod-0.1.0b6-py3-none-any.whl
  • Upload date:
  • Size: 28.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for picopod-0.1.0b6-py3-none-any.whl
Algorithm Hash digest
SHA256 bc0626892e465c927380e293f5e02ec983d4d7cb5154d9109c5c9d056cbfd514
MD5 5a0a97a2cf50c12bef98d7749642fea2
BLAKE2b-256 1e85a741d24d6cfbc311b83162a1efade7f29804009e3477aeea635ef5ae1664

See more details on using hashes here.

Provenance

The following attestation bundles were made for picopod-0.1.0b6-py3-none-any.whl:

Publisher: python-package.yml on adierking/picopod

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.0

2 files

This release

0.1.0b6 This release

2 files

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