Skip to main content

API Automatic Documentation Maker - DRF-SPECTACULAR wrapper

Project description

audoma - API Automatic Documentation Maker

Audoma test

Code style: black Imports: isort

The main goal of this project is to make Django Rest Framework documentation easier and more automatic. Audoma is an extension of drf-spectacular. Main goals of this project are:

  • Make documentation more accurate, make schema include more information about views.
  • Include some external library solutions as default, and document them properly.
  • Make code and documentation more consistent, and avoid situations when documentation differs from code.
  • Extend basic rest-framework functionalities

Getting Started

Installation and configuration

Features

  • More explicit documentation of permissions and filters/search fields.
  • More ways of defining serializer_class on viewset.
  • Native documentation of MoneyField, PhoneField.
  • Possibility to define examples on the serializer field.
  • New decorator @audoma_action for more consistent documentation, modifying action behavior.
  • Modified @extend_schema_field decorator behavior, now it's updating field info, not overriding it.
  • Added Bulk create/delete/update serializer mixins.

Running example application

You can easily test audoma functionalities with our example application. This can be done easily by using docker and docker compose.

You simply have to:

  • clone the repository
  • enter cloned project root folder
  • got to docker/
  • run docker compose up example_app

Now the example application should be running under http://localhost:8000. If you want to visit example documentation you should visit /redoc or /swagger-ui.

If you want to modify the example application you'll find its content inside /audoma_examples folder.

Development

Project has defined code style and pre-commit hooks for effortless code formatting.

To setup pre-commit hooks inside repo run:

    $ pip install -r requirements_dev.txt
    $ pre-commit install

From now on your commits will fail if your changes break code conventions of the project.

To format project and apply all code style conventions run:

    $ ./autoformat.sh

This command can be triggered automatically by IDE on file save or on file change.

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

audoma-0.6.10.tar.gz (69.4 kB view details)

Uploaded Source

Built Distribution

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

audoma-0.6.10-py3-none-any.whl (54.1 kB view details)

Uploaded Python 3

File details

Details for the file audoma-0.6.10.tar.gz.

File metadata

  • Download URL: audoma-0.6.10.tar.gz
  • Upload date:
  • Size: 69.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for audoma-0.6.10.tar.gz
Algorithm Hash digest
SHA256 d2adf5b69bf09af6a915dda578d2a60f9b53568f08082c34d6fb2b2b5a2b0af0
MD5 6550f68021a264fd8672850eab50410f
BLAKE2b-256 5682250379b9d7ff0039a86cc6402d6d720253dc8b31bacf8c4d0c6bbb8593bc

See more details on using hashes here.

File details

Details for the file audoma-0.6.10-py3-none-any.whl.

File metadata

  • Download URL: audoma-0.6.10-py3-none-any.whl
  • Upload date:
  • Size: 54.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for audoma-0.6.10-py3-none-any.whl
Algorithm Hash digest
SHA256 110726045eba96a472735d34702600c8a28df7e92ce2667d7367cb198609b0ee
MD5 abf3d1fcb323dcfda04f4db904f32bac
BLAKE2b-256 cafb22d03bd91a553369d33988324a8108e275ee56e7a8ede65ef95143d21e51

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