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

Uploaded Source

Built Distribution

django_nats_nkeys-0.3.1-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

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

Hashes for django_nats_nkeys-0.3.1.tar.gz
Algorithm Hash digest
SHA256 f7b9b36350cdfc89b2e74fee75acad9907c663a98cc19f36f9d75c7d3bdfd86e
MD5 36e1ec1230107b10a842b0e9ce9fff31
BLAKE2b-256 debcc4b2021392e03507ab86c8e15563fb64ebdd13656a7de130974890f672c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_nats_nkeys-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ef5701647802297e3251a3fe1b048f0882f2f753ced8fd3dbf6157854585b010
MD5 d4a939f6a6ec3d86ad2e4fb4052ae032
BLAKE2b-256 69dcb4409218d475b4f231c5106cba4a945a1030e51f99bc8d1202b719a70092

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