Django NATS Nkey is a Django app to synchronize Django superusers, accounts, and users with NATS nkey-based authentization/authorization scheme
Project description
NATS is an infrastructure platform for building message-based services.
This Django app integrates NAT’s _multi-tenant account paradigm with Django organizations.
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 running nsc 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.0.tar.gz
.
File metadata
- Download URL: django_nats_nkeys-0.4.0.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63f471959ac6af41a69b59e6fb365df685e1458f08a4b55529eb7a41e3e34c6d |
|
MD5 | 83ebb50cd9181093f3e16c1365532467 |
|
BLAKE2b-256 | 1cb5dc366713a187de3a091275cd63c06cd93366c73070629de3ebc0d05885e8 |
File details
Details for the file django_nats_nkeys-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: django_nats_nkeys-0.4.0-py3-none-any.whl
- Upload date:
- Size: 26.3 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 | fc1fbf5ff7424d2ae00b594d0b4e5b5163c4b0c3db7f742944db744d64829354 |
|
MD5 | 8a8afc8cb5b3e3b709b61cbf7f2cad71 |
|
BLAKE2b-256 | d135a1dde346d17bda96e3a9a4f5df621f845e9b9450c05c8b696e0ae41b9555 |