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

PyPI version Conda version

GitHub Workflow Status (branch) Codecov Documentation Status

Code style: black Imports: isort

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.

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.3.0.tar.gz (6.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.3.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dessinemoi-21.3.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.7.10 Darwin/20.5.0

File hashes

Hashes for dessinemoi-21.3.0.tar.gz
Algorithm Hash digest
SHA256 4240ee49083019c20265a9dd56faa61d8e5212a7b925439984a5b62af94258be
MD5 03bfbfea06f8bec2c18488e228779109
BLAKE2b-256 a2a4ac489badd8ee79d1e73ce2b5062559fa042945adc22d12640b73d9ad71b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dessinemoi-21.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.7.10 Darwin/20.5.0

File hashes

Hashes for dessinemoi-21.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e4fba62765e0f6c71bf5675cfa7ab138bbd14dd691e126fc2198264077ea5c0
MD5 1afe8cd5358aa8ff23a48f096bca2aed
BLAKE2b-256 208ca58832d77eb7f1782c69f9734b6607e55f83884c981be7d4ebee3cb66c93

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