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.3.1.tar.gz
.
File metadata
- Download URL: django_nats_nkeys-0.3.1.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 | f7b9b36350cdfc89b2e74fee75acad9907c663a98cc19f36f9d75c7d3bdfd86e |
|
MD5 | 36e1ec1230107b10a842b0e9ce9fff31 |
|
BLAKE2b-256 | debcc4b2021392e03507ab86c8e15563fb64ebdd13656a7de130974890f672c9 |
File details
Details for the file django_nats_nkeys-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: django_nats_nkeys-0.3.1-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 | ef5701647802297e3251a3fe1b048f0882f2f753ced8fd3dbf6157854585b010 |
|
MD5 | d4a939f6a6ec3d86ad2e4fb4052ae032 |
|
BLAKE2b-256 | 69dcb4409218d475b4f231c5106cba4a945a1030e51f99bc8d1202b719a70092 |