Skip to main content

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

image

image

image

image

image

image

image

image

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

  1. Add to your INSTALLED_APPS settings:

    INSTALLED_APPS = [
        ...
        "organizations",
        "django_extensions",
        "django_nats_nkey",
    ]
    
  2. Run python manage.py migrate to create the NATS organizationals models

  3. 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

  1. Create a development environment (requires docker & docker-compose):

    make docker-up
    make nsc-init
    
  2. Run tests and generate a coverage report:

    make pytest
    
  3. Run black linter:

    make lint
    

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

django_nats_nkeys-0.4.5.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

django_nats_nkeys-0.4.5-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

Details for the file django_nats_nkeys-0.4.5.tar.gz.

File metadata

  • Download URL: django_nats_nkeys-0.4.5.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

Hashes for django_nats_nkeys-0.4.5.tar.gz
Algorithm Hash digest
SHA256 f641611190755e64c7da5ae5eb4bb704eb63808b2e501eea2f9fbecb96d26217
MD5 64d79065c9a9dc01d1b000361737f6fb
BLAKE2b-256 77a2db6fc9327381e49c9907ce6d8bf9f38735ae5fc2f5c78ee23a9f282a89b6

See more details on using hashes here.

File details

Details for the file django_nats_nkeys-0.4.5-py3-none-any.whl.

File metadata

File hashes

Hashes for django_nats_nkeys-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f59e34ec05ca3515ad1af62e3596611354d14546897364e515cc99a7dab71378
MD5 c6a13cad2effde8aa2331eb9ae5ac7eb
BLAKE2b-256 1bf1629077e0b18f7cd1631e50fdb38e88d2bebc9d1de4b68a9ded585eb1505d

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