Skip to main content

A simple Python factory system

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...

Documentation Status PyPI version Conda version

Code style: black Imports: isort


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


  • 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.


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


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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dessinemoi-21.1.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

dessinemoi-21.1.0-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page