Generate API documentation in MarkDown based in the models and api handlers for given project using ChatGPT.
Project description
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
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | e77eeed2d7d743e47b56a03bb9f57880249d2dd8b5826329add7036e31245948 |
|
MD5 | eeee59786e6c3e7fe0325acfb6a998a0 |
|
BLAKE2b-256 | 50c6901368964bf9a0b3a458460a31ec7f7578ab1cac58f60a373b868290eeda |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ed030b59b4aab074f806308174d3ec0133279fbebdfa80206a7b974026cad52 |
|
MD5 | babb75229f8adda932c7caf85484dbb1 |
|
BLAKE2b-256 | 430fc2fe7990947368be219a832aa34295940fc36b261c44f4392698fca2688f |