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
-
Install Poetry https://python-poetry.org/docs/#installation
-
Use a virtual environment https://python-poetry.org/docs/basic-usage/#using-your-virtual-environment
-
poetry install --with dev --no-rootinstalls dependencies for development -
poetry run pre-commit installinstalls the pre-commit hooks -
pytestruns tests
- To install poetry you may want to
pipx install poetryand/orpipx 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.11pyenv local 3.7 3.8 3.9 3.10 3.11tox
Documentation
cd docsmake 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)
| File | Size | Uploaded | |
|---|---|---|---|
| django_accounts_api-1.2.5.tar.gz | 19.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|