Skip to main content

Dessine-moi, a simple Python factory

S'il vous plaît, dessine-moi un mouton.

The narrator of Antoine de Saint-Exupéry's Little Prince probably dreamt of a factory like this one...

PyPI version Conda version

GitHub Workflow Status (branch) Documentation Status

uv Ruff

Motivation

Dessine-moi is a simple Python implementation of the factory pattern. It was born from the need to create dynamically object trees from nested dictionaries (e.g. a JSON document).

Features

  • Create a Factory object and register types to it
  • Use dictionaries to create objects from the factory
  • Create attrs-compatible converters to automatically convert dictionaries to instances of registered types
  • Customize factories to your needs

Check the documentation for more detail.

License

Dessine-moi is distributed under the terms of the MIT license.

About

Dessine-moi is written and maintained by Vincent Leroy.

The development is supported by Rayference.

Dessine-moi is a component of the Eradiate radiative transfer model.

Metadata

Release files for dessinemoi 26.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dessinemoi 26.1.0
File Size Uploaded
dessinemoi-26.1.0.tar.gz 98.2 kB Details

Built distribution (wheel)

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

Total release size: 106.4 kB

Release files / dessinemoi-26.1.0.tar.gz

Download URL dessinemoi-26.1.0.tar.gz
Size 98.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5e8f5e4e113b8c3c5fae9e4ab22bdf811f293b03ebd89c6e07a9119b8b682667
BLAKE2b-256 checksum
How to use checksums
0e7f60624eca5cdfc3e538d7caf8587f005ba2e836276ea377d0ca45b01c49f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / dessinemoi-26.1.0-py3-none-any.whl

Download URL dessinemoi-26.1.0-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a0fcc9f318e81d473fbe8c7d014665f931a12712b19f84e9a948d2f2a55295c
BLAKE2b-256 checksum
How to use checksums
629d32ab924b0b45e68e45046092993490ea5aeadd84ac1cf0088c6bcd2a563d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

26.1.0 This release

2 release files

25.1.0

2 release files

24.1.0

2 release files

23.1.0

2 release files

22.2.0

2 release files

22.1.1

2 release files

22.1.0

2 release files

21.3.0

2 release files

21.2.0

2 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