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.1
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 | Actions Reset |
|---|---|---|---|---|
| django_simple_docs-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for django_simple_docs-1.2.1-py3-none-any.whl |
Release files / django_simple_docs-1.2.1-py3-none-any.whl
| Download URL | django_simple_docs-1.2.1-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f73c424e41a7d11136029518a0b4bf9b9374055e76aceb89b052ec7bae820f9
|
|
BLAKE2b-256 checksum How to use checksums |
7614c5ccbd82304b2088fc1550f883f5660d4dfebccf7820045da93b20cb7da2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.17
|
Security for django-simple-docs 1.2.1
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.