Django simple Docs
This is a django app to easily configure drf_spectacular.
Instalation
Installing from PyPI:
pip install django-simple-docs
Add the following settings in your project:
INSTALLED_APPS = [
...,
"django_simple_docs",
"drf_spectacular",
...,
]
REST_FRAMEWORK = {
...,
"DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema",
...,
}
And, finally, configure the URLs:
urlpatterns = [
...,
path("api/docs/", include("django_simple_docs.urls")),
...,
]
Now, you can go to http://localhost:8000/api/docs/ and browse the OpenAPI docs in your browser.
Rationale
This is a simply configured drf_spectacular package for quickly getting started with having OpenAPI docs withour much fuss. If you need more customization, this package is probably not for you.
Virtual Environment
Create a virtual Environment
virtualenv .venv -p pytthon 3.14
source .venv/bin/activate
Tests
Using pytest for Tests
python -m pytest
Formatting and Linting
Using pre-commit for linting and formatting
pre-commit install
pre-commit run --all-files
Metadata
Release files for django-simple-docs 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_simple_docs-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / django_simple_docs-1.2.0-py3-none-any.whl
| Download URL | django_simple_docs-1.2.0-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
415b8216423d9c6912787a8041e08a635db27407ee552465083087e198298052
|
|
BLAKE2b-256 checksum How to use checksums |
97945e3cd9abffa1b3fbb8569937a9fa86e3bbb9837d305eac3ffe8c0129582a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.17
|