This fork from "eevee/camel" aims to maintain and potentially enhance the library, the original project has been inactive for years.
CamelX
CamelX is a library that lets you describe how to serialize your objects to YAML — and refuses to serialize them if you don't.
If you are interested in contributing, please submit pull requests.
Quick example:
from camelx import Camel, CamelRegistry
class DieRoll(tuple):
def __new__(cls, a, b):
return tuple.__new__(cls, [a, b])
def __repr__(self):
return "DieRoll(%s,%s)" % self
reg = CamelRegistry()
@reg.dumper(DieRoll, u'roll', version=None)
def _dump_dice(data):
return u"{}d{}".format(*data)
@reg.loader(u'roll', version=None)
def _load_dice(data, version):
a, _, b = data.partition(u'd')
return DieRoll(int(a), int(b))
value = DieRoll(3, 6)
camel = Camel([reg])
print(camel.dump(value))
# !roll 3d6
# ...
Docs: http://camel.readthedocs.org/en/latest/
GitHub: https://github.com/eevee/camel
Metadata
Release files for camelx 0.0.2
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 |
|---|---|---|---|---|
| camelx-0.0.2.tar.gz | 137.6 kB | Without provenance | Details for camelx-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| camelx-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for camelx-0.0.2-py3-none-any.whl |
Total release size: 278.4 kB
Release files / camelx-0.0.2.tar.gz
| Download URL | camelx-0.0.2.tar.gz |
|---|---|
| Size | 137.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f11f73e883645b03728d9a790d561defd8dd8441605c9a2eab8bf836f68ebea5
|
|
BLAKE2b-256 checksum How to use checksums |
d5eb50527d3c82b4a7f06ff63d6d8645a99ba8857bb1215e5a39ee7847936823
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / camelx-0.0.2-py3-none-any.whl
| Download URL | camelx-0.0.2-py3-none-any.whl |
|---|---|
| Size | 140.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a3d3966ab0c36ebd5b90febac7222b2ab8b794ad812364a887abbae0c785192
|
|
BLAKE2b-256 checksum How to use checksums |
0a8e7b03df1f35d383ad5058998ce262db772fa8d0b810a8249aa4271ae257ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for camelx 0.0.2
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.