Skip to main content

dinorex-py

AI-powered API documentation for Python projects — one command, full docs.

The Python sibling of dinorex.
Point it at any Python backend and get a live interactive docs UI instantly.

Supported frameworks

Framework Route detection Model/schema detection
FastAPI @router.get, @app.get, APIRouter Pydantic v1 & v2 BaseModel
Flask @app.route, @bp.route, MethodView Marshmallow schemas
Django urls.py path() / re_path(), CBVs Django ORM models.Model
DRF ViewSet, APIView, @action ModelSerializer, Serializer
Falcon on_get, on_post … responders —
Sanic @app.route, @bp.route —
Litestar @get, @post, Controller Pydantic / attrs
Starlette Route(), Mount() Pydantic
Tornado RequestHandler subclasses —
aiohttp RouteTableDef, add_route —
SQLAlchemy — Column, mapped_column
Tortoise ORM — fields.CharField …

Installation

pip install dinorex-py

Quick start

# Anthropic (default)
export ANTHROPIC_API_KEY=sk-ant-...
dinorex scan /path/to/your/project

# Groq (free)
export GROQ_API_KEY=gsk_...
dinorex scan /path/to/your/project --provider groq

# Custom port
dinorex scan . -p 8080

Project structure

dinorex-py/
├── src/
│   └── dinorex_py/
│       ├── __init__.py
│       ├── cli.py          # Click CLI entry point
│       ├── scanner.py      # File discovery for all Python frameworks
│       ├── agent.py        # Anthropic Claude agent
│       ├── agent_groq.py   # Groq/Llama3 agent (free tier)
│       ├── server.py       # Flask server + REST API
│       ├── store.py        # Persistent spec cache + diff logic
│       └── public/         # Frontend UI (shared with dinorex Node)
├── pyproject.toml
└── README.md

How it works

  1. Scan — discovers route files, controllers, services, and models using glob patterns tuned for every Python framework.
  2. Analyse — sends the source code to Claude (or Llama3 via Groq) which extracts a structured JSON spec.
  3. Cache — saves the spec and file hashes to .dinorex/spec.json. Re-runs are incremental — only changed files are re-analysed.
  4. Serve — starts a local Flask server with the interactive UI.

Environment variables

Variable Description
ANTHROPIC_API_KEY Required for Anthropic provider
GROQ_API_KEY Required for Groq provider
DINOREX_PROVIDER Set default provider (anthropic or groq)

License

MIT

Metadata

Release files for dinorex-py 0.1.4

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

Source distribution (sdist)

Source distribution for dinorex-py 0.1.4
File Size Uploaded Provenance Actions
dinorex_py-0.1.4.tar.gz 23.4 kB Without provenance Details for dinorex_py-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dinorex-py 0.1.4
File Interpreter ABI Platform Actions
dinorex_py-0.1.4-py3-none-any.whl Python 3 none any Details for dinorex_py-0.1.4-py3-none-any.whl

Total release size: 61.3 kB

Release files / dinorex_py-0.1.4.tar.gz

Download URL dinorex_py-0.1.4.tar.gz
Size 23.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9e213b28e44865be8cfe0edfdd6d5ba805cab397957fa432cbb6782ba71e837e
BLAKE2b-256 checksum
How to use checksums
e7c4367fd161b0da529f98c95363d0f761a342a87252c5aeda9bc664ac81db7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / dinorex_py-0.1.4-py3-none-any.whl

Download URL dinorex_py-0.1.4-py3-none-any.whl
Size 37.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea740dab2fc53e2c9f25940766f97c16880f82bd882519a63a84fd8eb502caf8
BLAKE2b-256 checksum
How to use checksums
59f63b26ea654cb1a169a83c9c6b80726ffbe76dcdb35c37de01216edc8e22a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Security for dinorex-py 0.1.4

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