limbs
like mime, but simpler - a simple, human-readable file format
Simple I/O to flat text files with a header (composed of fields) and a body (arbitrary bytes). Ideal for no-hassle storage of some metadata and some large data that doesn’t fit nicely into things like JSON (which becomes really hard to edit in a text editor if there’s a 2 MB blob of numbers somewhere in it).
While the general format is the same as MIME/”internet messages” and most if not all “internet messages” can be parsed by this module there are a few distinctions. For starters the header is always UTF-8 encoded (which doesn’t clash with the 7-bit-ASCII-padded-to-bytes used by internet messages). Field names are mangled to Python identifiers by stripping surrounding whitespace and dashes, turning them all lower case, replacing dashes (-) with underscores (_) and appending another underscore if the result is a reserved Python keyword. If the result of this is not a valid Python identifier, the field name is invalid.
When writing files from objects this translation is reversed (underscores replaced with dashes, surrounding dashes are removed and the result is title-cased).
Values are simple strings.
The optional body of a file is, in contrast to the header, not UTF-8, but rather treated as a byte string. If the body is text-like usage of UTF-8 is strongly advised.
Line endings in the header can be UNIX style (n, preferred) or Windows style (rn). Windows style endings are always converted to UNIX style endings when reading, and only UNIX style endings are written.
Primary APIs are dump, dumps, load and loads.
Metadata
Release files for limbs 0.4
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 |
|---|---|---|---|---|
| limbs-0.4.tar.gz | 3.7 kB | Without provenance | Details for limbs-0.4.tar.gz |
Release files / limbs-0.4.tar.gz
| Download URL | limbs-0.4.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
433894b8b1628d9f7f412586244b5e4485fba19405548404c5442c0d67f784d7
|
|
BLAKE2b-256 checksum How to use checksums |
8650efcc6f52cad86f6847989eb729db7e6ae6468a2e47df13977d374d7349cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for limbs 0.4
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.