Skip to main content

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

PyPI version Conda version

GitHub Workflow Status (branch) Documentation Status

uv Ruff

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


Download files

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

Source Distribution

dessinemoi-25.1.0.tar.gz (98.2 kB view details)

Uploaded Source

Built Distribution

dessinemoi-25.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dessinemoi-25.1.0.tar.gz
  • Upload date:
  • Size: 98.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.15

File hashes

Hashes for dessinemoi-25.1.0.tar.gz
Algorithm Hash digest
SHA256 18e7acbf0ed2cbe918aee1ae8389f3d2d399c9388407f7c734af6eb7d99fe4b9
MD5 fde8045c668b14c680f7e9740149003d
BLAKE2b-256 2ba79888c6c5c413c9bb1190f0bba5aff19b4978823cd2b47c49b422fe8c75e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dessinemoi-25.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 08d102cdd744609e38d64ee7f6ddbf9f278fa4ab030f20d7faead6084e20f67b
MD5 d0181084a0888f2215c3181f44c48221
BLAKE2b-256 8ee41820e3a8654f127a498b4efef14aa6dfff52878116f8e81da78794b1f6d3

See more details on using hashes here.

Supported by

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