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) 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-22.1.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

dessinemoi-22.1.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dessinemoi-22.1.0.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.0.1 CPython/3.8.13

File hashes

Hashes for dessinemoi-22.1.0.tar.gz
Algorithm Hash digest
SHA256 2f26e5283fc6edcd8401198303f6af4d5f93b695eace0e9d008dac6dbd00b8b5
MD5 4840104d33d5ed4a3a36e1dd17695bfc
BLAKE2b-256 a06d68f418844f25d87e8a4f5679c6b9a852caebdd7cc70931ef0551f231ffe9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dessinemoi-22.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.0.1 CPython/3.8.13

File hashes

Hashes for dessinemoi-22.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 157b38de0bce52f02dc41d1f508b01c1d1dc8e9130f01afb6c6f3fb92dc7fa3c
MD5 8a092268a168e83c8ae0ed61e86cca4f
BLAKE2b-256 85ebe10764928f96b339bbf4e71799b411bba76330cb76bd747e30d7d2f1d965

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 Pingdom Monitoring Sentry Error logging StatusPage Status page