A simple factory implementation written in Python
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dessinemoi-26.1.0.tar.gz.
File metadata
- Download URL: dessinemoi-26.1.0.tar.gz
- Upload date:
- Size: 98.2 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e8f5e4e113b8c3c5fae9e4ab22bdf811f293b03ebd89c6e07a9119b8b682667
|
|
| MD5 |
da662a2f74ad0ba0984006fcfa781993
|
|
| BLAKE2b-256 |
0e7f60624eca5cdfc3e538d7caf8587f005ba2e836276ea377d0ca45b01c49f2
|
File details
Details for the file dessinemoi-26.1.0-py3-none-any.whl.
File metadata
- Download URL: dessinemoi-26.1.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a0fcc9f318e81d473fbe8c7d014665f931a12712b19f84e9a948d2f2a55295c
|
|
| MD5 |
97a15a23f8a76d247fa5888ffa87e46e
|
|
| BLAKE2b-256 |
629d32ab924b0b45e68e45046092993490ea5aeadd84ac1cf0088c6bcd2a563d
|