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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for django_nats_nkeys-0.4.0.tar.gz
Algorithm Hash digest
SHA256 63f471959ac6af41a69b59e6fb365df685e1458f08a4b55529eb7a41e3e34c6d
MD5 83ebb50cd9181093f3e16c1365532467
BLAKE2b-256 1cb5dc366713a187de3a091275cd63c06cd93366c73070629de3ebc0d05885e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_nats_nkeys-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc1fbf5ff7424d2ae00b594d0b4e5b5163c4b0c3db7f742944db744d64829354
MD5 8a8afc8cb5b3e3b709b61cbf7f2cad71
BLAKE2b-256 d135a1dde346d17bda96e3a9a4f5df621f845e9b9450c05c8b696e0ae41b9555

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