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.0b13.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

genDocsGPT-1.0b13-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for genDocsGPT-1.0b13.tar.gz
Algorithm Hash digest
SHA256 e77eeed2d7d743e47b56a03bb9f57880249d2dd8b5826329add7036e31245948
MD5 eeee59786e6c3e7fe0325acfb6a998a0
BLAKE2b-256 50c6901368964bf9a0b3a458460a31ec7f7578ab1cac58f60a373b868290eeda

See more details on using hashes here.

File details

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

File metadata

  • Download URL: genDocsGPT-1.0b13-py3-none-any.whl
  • Upload date:
  • Size: 10.1 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.0b13-py3-none-any.whl
Algorithm Hash digest
SHA256 8ed030b59b4aab074f806308174d3ec0133279fbebdfa80206a7b974026cad52
MD5 babb75229f8adda932c7caf85484dbb1
BLAKE2b-256 430fc2fe7990947368be219a832aa34295940fc36b261c44f4392698fca2688f

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