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

Documentation Status PyPI version Conda version

Code style: black Imports: isort

Motivation

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

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.

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file dessinemoi-21.1.0.tar.gz.

File metadata

  • Download URL: dessinemoi-21.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10

File hashes

Hashes for dessinemoi-21.1.0.tar.gz
Algorithm Hash digest
SHA256 a3a845122bc816384afe5430ed4d5c7888f313436fcca06fc5f599a64fb51a78
MD5 0ff88131ab95288c1c222a031b43be11
BLAKE2b-256 e4ad0a5ff764b9c075f2b7fff9fbaa7a5277a8aad20e1162de5ab57c7b4a38fc

See more details on using hashes here.

File details

Details for the file dessinemoi-21.1.0-py3-none-any.whl.

File metadata

  • Download URL: dessinemoi-21.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10

File hashes

Hashes for dessinemoi-21.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 182a3f93f7ad1b24c1500b90aa251f96805be31bc6d5caaa2ea4970f3f5675a9
MD5 3f3f11d30b93931a08c7daffbc8023d9
BLAKE2b-256 dd193771549ac10541300b2a5a9c44c08dfcca72345aae79d6dadebdc6ea76b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page