luabins_py
A simple python library for encoding and decoding luabins formatted serialized data.
API
def decode_luabins(stream: BytesIO) -> List[Any]
Given a file-like object (here BytesIO, but a raw file pointer should work as well), this will return the list of values decoded from the file.
def encode_luabins(values: List[Any]) -> bytes
Given a set of values, it will serialize them to bytes in the luabins format.
Supported types are:
- String
- Int
- Float
- Dict
- List
- None
- Bool
Limitations
In lua, arrays and maps have the same underlying representation, whereas in python, they're differentiated more. This means that you can serialize a list, but it will deserialize to a dict, where the keys are the original indexes, and there is some potential for weirdness there.
I believe this library supports the full scope of the lua data model, so this mostly crops up if you try to do some weird python stuff.
Metadata
Release files for luabins-py 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| luabins_py-1.4.0.tar.gz | 4.0 kB | Without provenance | Details for luabins_py-1.4.0.tar.gz |
Release files / luabins_py-1.4.0.tar.gz
| Download URL | luabins_py-1.4.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d7115b6756aca710cd24ed81fa8709b0890e5ad4662f23e874650aad5981770
|
|
BLAKE2b-256 checksum How to use checksums |
b61490263f9c36b11f9c68b06ff47cf1396e22119acce11ed5d9000e4dff8801
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
|
Security for luabins-py 1.4.0
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.