Skip to main content

Generate API documentation in MarkDown based in the models and api handlers for given project using ChatGPT.

Project description

License: MIT Python Versions Test workflow

Generate Docs using ChatGPT

Script to generate API documentation in MarkDown based in the models and api handlers for given project using ChatGPT.

ChatGPT API Key

The script demand a ChatGPT API Key that you can generate after create your account in OpenAI. Tutorial here. After this, create a .env file in the following format:

API_KEY="chatgpt_api_Key"

Usage

genDocsGPT [-h] [-v, --verbose] -m / --model <model_paths> -a / --api <api_paths> [-o / --output <filename>]

options:
  -h, --help            show this help message and exit
  -v, --verbose         Show all the messages to debug
  -m / --model <model_paths>
                        Model paths. If more than one, separate with a comma
  -a / --api <api_paths>
                        API paths. If more than one, separate with a comma
  -o / --output <filename>
                        Filename to the documentation generated. Default: ./api.md
  -t / --token <token>  ChatGPT API KEY
  --env <filename>      Env file that MUST and ONLY have API_KEY="chatgpt_api_key". Default: ./.env

We do not recommend using it in non-open-source projects.

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

genDocsGPT-1.0b12.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

genDocsGPT-1.0b12-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file genDocsGPT-1.0b12.tar.gz.

File metadata

  • Download URL: genDocsGPT-1.0b12.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for genDocsGPT-1.0b12.tar.gz
Algorithm Hash digest
SHA256 b5e76798bce9be3668103fd25ded678b3291be158d904e3b53322cf632a12dbf
MD5 1866b511b44a6519d88deebdb02d7135
BLAKE2b-256 dfc978c6311a4f0ba1b752c2f0920af80e930654dad0862b814c13352e57709c

See more details on using hashes here.

File details

Details for the file genDocsGPT-1.0b12-py3-none-any.whl.

File metadata

  • Download URL: genDocsGPT-1.0b12-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for genDocsGPT-1.0b12-py3-none-any.whl
Algorithm Hash digest
SHA256 84ee9aacf56da2a275b0f802f028331b435ab15ea92726e6c0d82966f4e24816
MD5 7aed561509a20d35787380511478443e
BLAKE2b-256 141a3d15b24d377c2d1e6a8ea1af976623246bbfc78c7f95447db67cdc3e655e

See more details on using hashes here.

Supported by

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