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.11
- 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-root
installs dependencies for development -
poetry run pre-commit install
installs the pre-commit hooks -
pytest
runs tests
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
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
Hashes for django_accounts_api-1.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0bf8c65b2be7b1148eab100a2c705664d86faded2e0965c38cf178972a86e0c |
|
MD5 | 3f686e8dc8f73f7d82349b044855c905 |
|
BLAKE2b-256 | 57944b756c98454b4543085f05c7eec4e8d2f2a0bf8cb93d9894474cc883f58a |
Hashes for django_accounts_api-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5372791cd613554b32240a91720577f812650553209db39e59ae8a2b79e78639 |
|
MD5 | d81bb1ad468869df5cd5e41c2b9d43d7 |
|
BLAKE2b-256 | 1ce76fda5501e5771ed3f46d527b0d8bf4e76185603109708ae8580833bab4cc |