Skip to main content

Django Accounts API

Scenario to support is a compiled javascript capable frontend needing to provide authentication features over api

Caveat enptor, very early days, still being tested in its first project

Requirements

  • Python 3.7 - 3.12
  • Django 3.2 - 4

Usage

  • pip install ... or equivalent
  • add 'django_accounts_api', to INSTALLED_APPS
  • add path('/accounts_api/', include('django_accounts_api.urls')) to your urls
  • implement your frontend to use the urls

Features

See docs...

Development

  1. Install Poetry https://python-poetry.org/docs/#installation

  2. Use a virtual environment https://python-poetry.org/docs/basic-usage/#using-your-virtual-environment

  3. poetry install --with dev --no-root installs dependencies for development

  4. poetry run pre-commit install installs the pre-commit hooks

  5. pytest runs tests

  • To install poetry you may want to pipx install poetry and/or pipx upgrade poetry

Publishing

Create a Pypi token perhaps at https://pypi.org/manage/account/token/ It should look like this

Create API token
Token for "django_accounts_api"

Permissions: Upload packages
Scope: Project "django-accounts-api"

pypi-<YOUR_KEY>

poetry config pypi-token.pypi pypi-<YOUR_KEY>

Bump the version number Run poetry lock if requirements have changed Run poetry build Run poetry publish

Tox

To run tox you will need to make sure that the range of python versions required are available for tox to use.

Recommendation: use pyenv

  • pyenv install 3.7 3.8 3.9 3.10 3.11
  • pyenv local 3.7 3.8 3.9 3.10 3.11
  • tox

Documentation

  • cd docs
  • make html

TODO: add to tox

Linting & formatting

TODO: add to tox

Metadata

Release files for django-accounts-api 1.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-accounts-api 1.2.5
File Size Uploaded
django_accounts_api-1.2.5.tar.gz 19.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-accounts-api 1.2.5
File Interpreter ABI Platform
django_accounts_api-1.2.5-py3-none-any.whl Python 3 none any Details

Total release size: 68.7 kB

Release files / django_accounts_api-1.2.5.tar.gz

Download URL django_accounts_api-1.2.5.tar.gz
Size 19.6 kB
Tags Source
SHA-256 checksum
How to use checksums
01191e024ceb9585be40e8c59832f47b703f69d8a3c1093d469def7e9f49e2e3
BLAKE2b-256 checksum
How to use checksums
dd71c3ab93ac7555ff0e0fb96c2a306a8a9a56436287bd21b173540b1c49e068
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.13.6 Linux/6.14.11-300.fc42.x86_64

Release files / django_accounts_api-1.2.5-py3-none-any.whl

Download URL django_accounts_api-1.2.5-py3-none-any.whl
Size 49.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2af7cb2e392a40feb216a72055cec13e34a8348ae131cf37aaebf370e9618e63
BLAKE2b-256 checksum
How to use checksums
3da9205f8a6446e68394715a17ff42453cf701df0d6073d2bb6c7b69e77a24d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.13.6 Linux/6.14.11-300.fc42.x86_64
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page