A ready-to-use package to add drf-spectacular docs to your DRF API.
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_simple_docs-0.1.0-py3-none-any.whl.
File metadata
- Download URL: django_simple_docs-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a30f7f3b88551162cbd9d580ef498f042c073c62ae65a06c5d14ff77625a97a1
|
|
| MD5 |
674bf066a03dda870fcafaa449b896cf
|
|
| BLAKE2b-256 |
27e3d0b693f4aeba16588f95541af94638e0eb84bb8501fe541520751e8adbba
|