Skip to main content

docca

API documentation portal for Django REST Framework.

docca auto-discovers your DRF viewsets and API views, syncs them into a database-backed manifest, and renders a searchable portal with tags, parameters, and response fields — no YAML, no decorators, no separate spec file.

Part of the lxcor/api-suite.

Install

pip install lxcor-docca

Setup

# settings.py
INSTALLED_APPS = [
    ...
    'docca',
]
# urls.py
from django.urls import path, include

urlpatterns = [
    path('docs/', include('docca.urls')),
]

Annotate your views:

class MySunriseViewSet(viewsets.ViewSet):
    docca_tag = 'Solar'
    docca_overview = 'Returns sunrise and sunset times for a given location and date.'

Sync endpoints into the database:

python manage.py syncdocs

Visit /docs/ to see the portal.

Settings

Setting Default Description
DOCCA_APP_COLORS {} Bootstrap color per app label ('warning', 'danger', etc.)
DOCCA_APP_DESCRIPTIONS {} Product-facing description per app, shown on the portal

Management commands

Command Description
syncdocs Discover and sync all DRF endpoints into the database

Warning — syncdocs is authoritative for summary and description. Every run re-reads the view docstrings and overwrites those two fields in the database. Edits made directly to the DB or to fixture files will be lost on the next syncdocs run. To set a permanent custom summary, update the view or method docstring instead.

License

MIT

Metadata

Release files for lxcor-docca 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lxcor-docca 0.1.2
File Size Uploaded Provenance Actions
lxcor_docca-0.1.2.tar.gz 25.5 kB Without provenance Details for lxcor_docca-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lxcor-docca 0.1.2
File Interpreter ABI Platform Actions
lxcor_docca-0.1.2-py3-none-any.whl Python 3 none any Details for lxcor_docca-0.1.2-py3-none-any.whl

Total release size: 58.3 kB

Release files / lxcor_docca-0.1.2.tar.gz

Download URL lxcor_docca-0.1.2.tar.gz
Size 25.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e800af072d59b246355f4c223dc68e06c2c4be1e4b41c03c466688411d3784f7
BLAKE2b-256 checksum
How to use checksums
e57db7d2ca9affe28fa61e5077c78b974fa7493541b6232c6878a9baad6d29e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / lxcor_docca-0.1.2-py3-none-any.whl

Download URL lxcor_docca-0.1.2-py3-none-any.whl
Size 32.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
502312c5fdc0c64fde9a72677f38c9bb2e83039cf3a43be620c5c2813ca54bda
BLAKE2b-256 checksum
How to use checksums
6347ae6ec814c4ae7c6ea050a91432b1ca077d8b15c4420d24d7679347141a6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for lxcor-docca 0.1.2

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.

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