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.4.4.tar.gz
.
File metadata
- Download URL: django_nats_nkeys-0.4.4.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86713506090b0dc7602b896d78e79b51d7119c07cdb124e77be01cf5227562f9 |
|
MD5 | c7b76ffe8e0aad8e7ead2f3e2d3e42e8 |
|
BLAKE2b-256 | c57e48058913e3f915abd846560157c23a05365b37dba8ad39e2bf98de6db189 |
File details
Details for the file django_nats_nkeys-0.4.4-py3-none-any.whl
.
File metadata
- Download URL: django_nats_nkeys-0.4.4-py3-none-any.whl
- Upload date:
- Size: 26.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 | 5c33bf816e10f9096a92faa298406b991d646a787a157429b0ddf0e7cfd222cd |
|
MD5 | 13ea345e34781a5eab89391a8ba286dd |
|
BLAKE2b-256 | cdc20d6f77654505ef93bdecfcb0f1cd031ccc055d37296bddf6a3ce7e302c75 |