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

https://img.shields.io/pypi/v/django-nats-nkeys https://img.shields.io/pypi/pyversions/django-nats-nkeys https://img.shields.io/pypi/djversions/django-nats-nkeys https://img.shields.io/pypi/wheel/django-nats-nkeys https://img.shields.io/discord/773452324692688956 https://img.shields.io/github/workflow/status/bitsy-ai/django-nats-nkeys/Test https://img.shields.io/codecov/c/github/bitsy-ai/django-nats-nkeys https://img.shields.io/github/release-date-pre/bitsy-ai/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.

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.0.tar.gz (11.3 kB view hashes)

Uploaded Source

Built Distribution

django_nats_nkeys-0.4.0-py3-none-any.whl (26.3 kB view hashes)

Uploaded Python 3

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