Skip to main content

A simple natural key generator base on redis.

Project description

dj3nk

A simple natural key generator base on redis.

History.

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


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 details)

Uploaded Source

File details

Details for the file dj3nk-0.1.0.tar.gz.

File metadata

  • Download URL: dj3nk-0.1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for dj3nk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 06a878457c7268a41c3a64017ffeaf46f5214d0a30d24536dcc17f8314ad99c1
MD5 eac28d750fbf48491fc8510f054617f1
BLAKE2b-256 e6441b8917c2401cb71160b7a3d4af0f107fd3370b1250c7741aae968f2996e4

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