Skip to main content

Universal API documentation generator

Project description

Apimatic 🚀

Matrixxboy PyPI version Downloads Python Version License

A tool to automatically generate beautiful and comprehensive API documentation (Markdown/OpenAPI) from your source code.
Supports Flask, FastAPI, and more frameworks with optional AI-powered enhancements via Ollama.


📦 Installation

pip install apimatic

Upgrade to the latest version:

pip install --upgrade apimatic

⚡ Usage

Apimatic [-h] [--src SRC] [--framework [FRAMEWORK ...]] [--format {markdown,openapi}] 
         [--output OUTPUT] [--use-ollama] [--model MODEL]

🔑 Options

Option Description
-h, --help Show help message and exit
--src SRC Root directory of the project to scan (Default: current directory)
--framework [FRAMEWORK ...] Force a specific framework (flask, fastapi, etc.). If omitted, auto-detected
--format {markdown,openapi} Output format (markdown or openapi) – Default: markdown
--output OUTPUT Path for the generated output file (Default: API_Docs.md or openapi.yaml)
--use-ollama Enhance generated docs with descriptions from a local Ollama model
--model MODEL Ollama model for enhancement (e.g., llama3:instruct). Requires --use-ollama

📝 Examples

Generate Markdown docs from the current project:

Apimatic --src . --format markdown --output API_Docs.md

Generate OpenAPI spec:

Apimatic --src . --format openapi --output openapi.yaml

Force framework detection (Flask):

Apimatic --src ./my_flask_app --framework flask

Enhance documentation with AI (Ollama model):

Apimatic --src . --use-ollama --model llama3:instruct

🤝 Contributing

Contributions are welcome! Please fork the repo, make your changes, and submit a PR.


📄 License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apimatic-0.1.2.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apimatic-0.1.2-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file apimatic-0.1.2.tar.gz.

File metadata

  • Download URL: apimatic-0.1.2.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for apimatic-0.1.2.tar.gz
Algorithm Hash digest
SHA256 adaadbdf2e7f050f3420d6eb71490606a595b932b9a73c3f188de269d3e53596
MD5 47268d595aeefa7b655e5c43959e46ff
BLAKE2b-256 5c8182de4d3fda2960c7029fa6734ef8b2fe0c2a0012b0b022fc4cbc20f9e9d8

See more details on using hashes here.

File details

Details for the file apimatic-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: apimatic-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for apimatic-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 21613551d5a5dffa3a1fe2203b69c88371d2ccccb0930c122b6f52cf0cd78a42
MD5 64d770cd161cb1b525b55f73b95e82e2
BLAKE2b-256 8ec0600c278b87ad4861a8f5c33c264b406c93a162a146395a132e68917464ed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page