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...
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
Factoryobject 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)
| File | Size | Uploaded | |
|---|---|---|---|
| dessinemoi-26.1.0.tar.gz | 98.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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}
|