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
-
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01191e024ceb9585be40e8c59832f47b703f69d8a3c1093d469def7e9f49e2e3
|
|
| MD5 |
07b4427c8da5e78c195d0a8babf42f26
|
|
| BLAKE2b-256 |
dd71c3ab93ac7555ff0e0fb96c2a306a8a9a56436287bd21b173540b1c49e068
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2af7cb2e392a40feb216a72055cec13e34a8348ae131cf37aaebf370e9618e63
|
|
| MD5 |
aae20396da06900d543fd702eee7f62e
|
|
| BLAKE2b-256 |
3da9205f8a6446e68394715a17ff42453cf701df0d6073d2bb6c7b69e77a24d0
|