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.4rc2.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file django_accounts_api-1.2.4rc2.tar.gz.

File metadata

  • Download URL: django_accounts_api-1.2.4rc2.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.3 Linux/6.8.0-40-generic

File hashes

Hashes for django_accounts_api-1.2.4rc2.tar.gz
Algorithm Hash digest
SHA256 8c9b26611c085e7af590bf7bc77aade68d2b75263f1355ea38a8b20232852e1d
MD5 64dbf5e642655ee60568723c781c909d
BLAKE2b-256 91e26b483740a5c4b47f1f44aef3adcb123e6393ad4854a0498006c8bb272a00

See more details on using hashes here.

File details

Details for the file django_accounts_api-1.2.4rc2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_accounts_api-1.2.4rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 1978ca639a904b85a7f0171d8d990b43d0e3802569eb766a359db0569b4b70ee
MD5 7869f91458c9e1e8e5260c85d4fa7f35
BLAKE2b-256 35c70b7508c8b815a6815e5125fd9eff0953f45f3bc09c21dfcd046c683819f7

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