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

Uploaded Source

Built Distribution

django_hierarkey-1.0.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for django-hierarkey-1.0.0.tar.gz
Algorithm Hash digest
SHA256 67499fadae85eccc3392ad764b9dfb5b664835bb7cf9d7b406ac366fa4451a6d
MD5 38704a5131160eef74e0b3c5ca3e6da5
BLAKE2b-256 c0ceaeef2ea5ccc99ac4890311550fd63fa31dddf2ec15d1d72615044121e60c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_hierarkey-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c9a86df3bec452a446c997a65066dd7c039af50e9b5d790195f995fd875f475
MD5 3ba682bd09510298e727de5d6bc5f950
BLAKE2b-256 671594746d44a496ef98d42652ef04c60a6c4230530a106abe11859b2f6fb139

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