Skip to main content

Library for generating transport logic for web application

Project description

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/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autoapi-django-0.11.4.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autoapi_django-0.11.4-py3-none-any.whl (40.8 kB view details)

Uploaded Python 3

File details

Details for the file autoapi-django-0.11.4.tar.gz.

File metadata

  • Download URL: autoapi-django-0.11.4.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for autoapi-django-0.11.4.tar.gz
Algorithm Hash digest
SHA256 39c7ca8a3055a7737ff8b58d63b3be0f1bb3a792b5aba381c398b4b374048d8f
MD5 641d9aaad012dffb4b26775f09867152
BLAKE2b-256 0df0a05498ac1d0452ac2f55c56489d7646d828264dc8508359cecad04e09228

See more details on using hashes here.

File details

Details for the file autoapi_django-0.11.4-py3-none-any.whl.

File metadata

File hashes

Hashes for autoapi_django-0.11.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f204f108c6fc29d44b4ef3acc6ec01c9f047a5817c427808bae413f8f6fe547b
MD5 ea78363b97fbce71fb9533648eab11c5
BLAKE2b-256 34d0f3bb0da8270fae973e2abce1583acfa203953cecde5d87290286270e0865

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page