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
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 - Customise 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
Hashes for dessinemoi-22.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eada67f08f9fbebfa8b823d29499af4cd2bf1f4f0f000251035ad7c5c807720e |
|
MD5 | 7eb4c27d74bdf84c208987e62dcc705a |
|
BLAKE2b-256 | 3eeb1234a799cb648ff3f1bdbfc30622de79c1de50be5163cd9c0787e265d2d1 |