Skip to main content

Dirty models for python 3

Project description

travis-master coverall-master Documentation Status Downloads Latest Version Supported Python versions Development Status License Download format Supported Python implementations

dirty-models

Dirty models for python 3

Documentation

http://dirty-models.readthedocs.org

Features

  • Python 3 package.

  • Easy to create a model.

  • Non destructive modifications.

  • Non false positive modifications.

  • Able to restore original data for each field or whole model.

  • Access to original data.

  • Read only fields.

  • Alias for fields.

  • Custom getters and setters for each fields.

  • Automatic cast value.

  • Easy import from/export to dict.

  • Basic field type implemented.

  • Multi type fields.

  • Default values for each field or whole model.

  • HashMap model. It could be used instead of DynamicModel.

  • FastDynamicModel. It could be used instead of DynamicModel. Same behavior, better performance.

  • Pickable models.

  • Datetime fields can use any datetime format using parser and formatter functions.

  • No database dependent.

  • Auto documentation using https://github.com/alfred82santa/dirty-models-sphinx

  • Opensource (BSD License)

Changelog

Version 0.6.1

  • Improved model field autoreference.

Version 0.6.0

  • Added default value for fields.

  • Added default values at model level. Inherit default values could be override on new model classes.

  • Added multi type fields.

Version 0.5.2

  • Fixex model structure.

  • Makefile helpers.

Version 0.5.1

  • Added a easy way to get model structure. It will be used by autodoc libraries as sphinx or json-schema.

Version 0.5.0

  • Added autolist parameter to ArrayField. It allows to assign a single item to a list field, so it will be converted to a list with this value.

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

dirty-models-0.6.1.tar.gz (14.8 kB view hashes)

Uploaded Source

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