Skip to main content

Hierarchical key-value store for django

Project description

https://img.shields.io/pypi/v/django-hierarkey.svg https://readthedocs.org/projects/django-hierarkey/badge/?version=latest https://travis-ci.org/raphaelm/django-hierarkey.svg?branch=master https://codecov.io/gh/raphaelm/django-hierarkey/branch/master/graph/badge.svg

This package allows you to attach a key-value store to a model, e.g. to store preferences of an user or a customer. The package supports arbitrary datatypes, defaults and model hierarchies, i.e. you can define a different model instance as your instance’s parent and the values of the parent instance will be used as default values for the child instances.

This approach has been in use in pretix for quite a while, so it has been tested in production.

Tested with Python 3.4-3.6 and Django 1.9-1.11.

License

The code in this repository is published under the terms of the Apache License. See the LICENSE file for the complete license text.

This project is maintained by Raphael Michel <mail@raphaelmichel.de>. See the AUTHORS file for a list of all the awesome folks who contributed to this project.

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

django-hierarkey-1.0.3.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

django_hierarkey-1.0.3-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file django-hierarkey-1.0.3.tar.gz.

File metadata

File hashes

Hashes for django-hierarkey-1.0.3.tar.gz
Algorithm Hash digest
SHA256 95073a4bb0e521f88118e21c818fbb1aef844666a79884cf4336daae64e44ec8
MD5 dc4a3e58649bfb8f0a345471104df5be
BLAKE2b-256 79df19b029e74f1fd476958e61fea999b7c264e223b78f406164b61908eb0948

See more details on using hashes here.

File details

Details for the file django_hierarkey-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for django_hierarkey-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a6fa0815771d3d19829a05b22b7ad01b166acd095488cf29336af811f6148787
MD5 3400b79aed1b2176aa207ec45f1bed78
BLAKE2b-256 2071749a786b8e7680663f52f99980620176cf23be9b7e94f2ad2b81e4fb88fe

See more details on using hashes here.

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