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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e12731cb3a1429c9c098fc1d576b6f72371752155f145a864d6b9f31bad12666
|
|
| MD5 |
3e6c2229b95b0f22fb24031aea91f0cb
|
|
| BLAKE2b-256 |
6333af6c5367fd38310bf841b70f1b5b67cca3dda124444428c88b5ed874dfe4
|
Provenance
The following attestation bundles were made for picopod-0.1.0.tar.gz:
Publisher:
python-package.yml on adierking/picopod
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
picopod-0.1.0.tar.gz -
Subject digest:
e12731cb3a1429c9c098fc1d576b6f72371752155f145a864d6b9f31bad12666 - Sigstore transparency entry: 2255173979
- Sigstore integration time:
-
Permalink:
adierking/picopod@b7663da84a8409a18abe848d7c21b662958aa561 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/adierking
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-package.yml@b7663da84a8409a18abe848d7c21b662958aa561 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e291c5e2df518e0460ff1c4faef29ad9600245305082b2b6c53b4aa82b510e0a
|
|
| MD5 |
d8679f0af3e6fe0212905f7e98780c98
|
|
| BLAKE2b-256 |
1b3ed74b476f18c3cf0bf77aca0f02f0770e750b35a36d24e30c2b62d0b0baa8
|
Provenance
The following attestation bundles were made for picopod-0.1.0-py3-none-any.whl:
Publisher:
python-package.yml on adierking/picopod
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
picopod-0.1.0-py3-none-any.whl -
Subject digest:
e291c5e2df518e0460ff1c4faef29ad9600245305082b2b6c53b4aa82b510e0a - Sigstore transparency entry: 2255173987
- Sigstore integration time:
-
Permalink:
adierking/picopod@b7663da84a8409a18abe848d7c21b662958aa561 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/adierking
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-package.yml@b7663da84a8409a18abe848d7c21b662958aa561 -
Trigger Event:
push
-
Statement type: