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

Uploaded Source

Built Distribution

genDocsGPT-1.0b7-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for genDocsGPT-1.0b7.tar.gz
Algorithm Hash digest
SHA256 5924ffc9ddb6b5d355378df8d497c99ca5b11dda9f99e5651c0abb34827aade3
MD5 8dc39147a90d469757639e65075d8a8a
BLAKE2b-256 92d765d0e677568d6ff42a048467d8c8cdf4747161d7090618242c496b4694ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: genDocsGPT-1.0b7-py3-none-any.whl
  • Upload date:
  • Size: 9.4 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.0b7-py3-none-any.whl
Algorithm Hash digest
SHA256 8352c804f960e55ce94a82198bcd6acea8b516061e10423f8261842f294dad67
MD5 72bde2588cad318d7a9b8a76d4d7c8ac
BLAKE2b-256 5db9e33b415d45fe2a3abff65bb104c55c2a1c4d4c540738e03b52c6561123d3

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