Skip to main content

No project description provided

Project description

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

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_accounts_api-1.2.5.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_accounts_api-1.2.5-py3-none-any.whl (49.1 kB view details)

Uploaded Python 3

File details

Details for the file django_accounts_api-1.2.5.tar.gz.

File metadata

  • Download URL: django_accounts_api-1.2.5.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.13.6 Linux/6.14.11-300.fc42.x86_64

File hashes

Hashes for django_accounts_api-1.2.5.tar.gz
Algorithm Hash digest
SHA256 01191e024ceb9585be40e8c59832f47b703f69d8a3c1093d469def7e9f49e2e3
MD5 07b4427c8da5e78c195d0a8babf42f26
BLAKE2b-256 dd71c3ab93ac7555ff0e0fb96c2a306a8a9a56436287bd21b173540b1c49e068

See more details on using hashes here.

File details

Details for the file django_accounts_api-1.2.5-py3-none-any.whl.

File metadata

  • Download URL: django_accounts_api-1.2.5-py3-none-any.whl
  • Upload date:
  • Size: 49.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.13.6 Linux/6.14.11-300.fc42.x86_64

File hashes

Hashes for django_accounts_api-1.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2af7cb2e392a40feb216a72055cec13e34a8348ae131cf37aaebf370e9618e63
MD5 aae20396da06900d543fd702eee7f62e
BLAKE2b-256 3da9205f8a6446e68394715a17ff42453cf701df0d6073d2bb6c7b69e77a24d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page