Skip to main content

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)

Table of built distributions (wheels) for django-simple-docs 1.2.1
File Interpreter ABI Platform
django_simple_docs-1.2.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.2.1 This release

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page