A simple natural key generator base on redis.
Project description
dj3nk
A simple natural key generator base on redis.
Install
pip install dj3nk
Examples
# settings.py
NATURAL_KEY = {
"increment_main_key": "a3:dj:nk",
"random_bit_length": 16,
"puzzle_count": 1000000,
"rdb_conf_name": "default"
}
# models
from dj3nk import NKModel
class XXX(NKModel):
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dj3nk-0.1.0.tar.gz
(6.9 kB
view hashes)