django-accounts-api-0.2.1
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-accounts-api-0.2.1 |
| نام | django-accounts-api |
| نسخه کتابخانه | 0.2.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | PeteCoward |
| ایمیل نویسنده | peter@catalpa.io |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/django-accounts-api/ |
| مجوز | - |
# 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 it's 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
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
### 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
نیازمندی
| مقدار | نام |
|---|---|
| >=3.2 | django |
| >=3.2,<4.2 | django |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl django-accounts-api-0.2.1:
pip install django-accounts-api-0.2.1.whl
نصب پکیج tar.gz django-accounts-api-0.2.1:
pip install django-accounts-api-0.2.1.tar.gz