Django NATS Nkey is a Django app to synchronize Django superusers, accounts, and users with NATS nkey-based authentization/authorization scheme
Project description
Django Nats NKEYS
NATS is an infrastructure platform for building message-based services.
This Django app integrates NAT's multi-tenant account paradigm with Django Organizations.
The NATS nsc
tool is used to manage operator, account, and user JWTs.
Quick start
-
Add to your INSTALLED_APPS settings:
INSTALLED_APPS = [ ... "organizations", "django_extensions", "django_nats_nkey", ]
-
Run
python manage.py migrate
to create the NATS organizationals models -
Run
python manage.py nsc-init
(optional) Initialize a new NATS operator. You are responsible for copying the generated.conf
file to your NATS server. If you choose to use an existing operator, you are responsible for runningnsc pull
as a pre-deployment step.
Contributor's Guide
-
Create a development environment (requires docker & docker-compose):
make docker-up make nsc-init
-
Run tests and generate a coverage report:
make pytest
-
Run
black
linter:make lint
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
Built Distribution
File details
Details for the file django_nats_nkeys-0.5.0.tar.gz
.
File metadata
- Download URL: django_nats_nkeys-0.5.0.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdab39a963b53b1dee625b11bc55dfab7dfc8c92e135304d5931185862e29b2d |
|
MD5 | 78c85b8b627fbf80061fbc7d1115bc3d |
|
BLAKE2b-256 | 68136281ffe7a6b4bf98947084c012865f9db988a04b380deab5e044ae6ea4c5 |
File details
Details for the file django_nats_nkeys-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: django_nats_nkeys-0.5.0-py3-none-any.whl
- Upload date:
- Size: 27.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33f7186c71dbcc5423ad6b2ff70f99e1dcdf2ba0f033981c07ea4f23e7527397 |
|
MD5 | ace85af64ba39126c9a02bd8cab12df5 |
|
BLAKE2b-256 | 735f3d5c5e49b8cb3beb0ae3aeeecb7aadc0c02abf515d61a4eacab8fd6e4405 |