Skip to main content

AutoAPI

AutoAPI собирает абстрагирует ваше приложение от слоя с передачей данных, генерируя API из чистых классов, содержащих логику.

Документация

Развертывание на локалке

Устанавливаем virtual env:

python3 -m venv venv
. venv/bin/activate

Устанавливаем библиотеку с зависимостями

pip install .

Переходим в example-проект, мигрируем БД (SQLite) и запускаем:

cd example/online_shop
python manage.py migrate
python manage.py runserver

По урле http://127.0.0.1:8000/docs/ будет доступен Swagger для сгенерированного API. Оттуда можно дергать хэндлеры.

Рекомендуется создать суперюзера (python manage.py createsuperuser) и авторизоваться в админке. Чтобы проверить корректную работу API, можно дернуть хэндлер user.get_user в сваггере.

Для билда и отправки в PyPI надо сделать:

pip install build
python -m build
pip install twine
twine upload dist/*

Metadata

Release files for autoapi-django 0.11.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autoapi-django 0.11.4
File Size Uploaded Provenance
autoapi-django-0.11.4.tar.gz 22.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for autoapi-django 0.11.4
File Interpreter ABI Platform
autoapi_django-0.11.4-py3-none-any.whl Python 3 none any Details

Total release size: 63.6 kB

Release files / autoapi-django-0.11.4.tar.gz

Download URL autoapi-django-0.11.4.tar.gz
Size 22.8 kB
Tags Source
SHA-256 checksum
How to use checksums
39c7ca8a3055a7737ff8b58d63b3be0f1bb3a792b5aba381c398b4b374048d8f
BLAKE2b-256 checksum
How to use checksums
0df0a05498ac1d0452ac2f55c56489d7646d828264dc8508359cecad04e09228
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / autoapi_django-0.11.4-py3-none-any.whl

Download URL autoapi_django-0.11.4-py3-none-any.whl
Size 40.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f204f108c6fc29d44b4ef3acc6ec01c9f047a5817c427808bae413f8f6fe547b
BLAKE2b-256 checksum
How to use checksums
34d0f3bb0da8270fae973e2abce1583acfa203953cecde5d87290286270e0865
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for autoapi-django 0.11.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page