Skip to main content

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)

Source distribution for camelx 0.0.2
File Size Uploaded
camelx-0.0.2.tar.gz 137.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for camelx 0.0.2
File Interpreter ABI Platform
camelx-0.0.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

8 release 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