Skip to main content

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.0.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.0-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: picopod-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 e12731cb3a1429c9c098fc1d576b6f72371752155f145a864d6b9f31bad12666
MD5 3e6c2229b95b0f22fb24031aea91f0cb
BLAKE2b-256 6333af6c5367fd38310bf841b70f1b5b67cca3dda124444428c88b5ed874dfe4

See more details on using hashes here.

Provenance

The following attestation bundles were made for picopod-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: picopod-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e291c5e2df518e0460ff1c4faef29ad9600245305082b2b6c53b4aa82b510e0a
MD5 d8679f0af3e6fe0212905f7e98780c98
BLAKE2b-256 1b3ed74b476f18c3cf0bf77aca0f02f0770e750b35a36d24e30c2b62d0b0baa8

See more details on using hashes here.

Provenance

The following attestation bundles were made for picopod-0.1.0-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

This release

0.1.0 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