Skip to main content

A simple CLI tool to generate documentation for your Python projects automatically.

Project description

aidoc

aidoc is a command line interface (CLI) tool that uses AI to automatically generate documentation for your code.

PyPI

Requirements

Installation

  • standalone
python3 -m pip install aidoc
  • create a virtual environment and install the package (recommended)
pip install aidoc

Usage

To configure the API key and model for aidoc, run the following command:

aidoc configure

To generate documentation for a source file or directory, run the following command:

aidoc gen <source_file>

You can also specify the following optional arguments:

  • -o or --overwrite: Overwrite existing docstrings
  • -f or --format: Format the entire source file using black (default=True)
  • -pr or --pull-request: Create a pull request with the changes

Examples

Generate docstrings for the main.py file:

aidoc gen main.py

Generate docstrings for all Python files in the src directory and its subdirectories:

aidoc gen src

Generate docstrings and create a pull request with the changes:

aidoc gen main.py -pr

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Acknowledgments

Disclaimer

This project is not affiliated with OpenAI. The OpenAI API and GPT-3 language model are not free. You will need to sign up for a free OpenAI account and create an API key to use this tool.

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

aidoc-0.1.3.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

aidoc-0.1.3-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file aidoc-0.1.3.tar.gz.

File metadata

  • Download URL: aidoc-0.1.3.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for aidoc-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5f90dd34211a1c9aeea7a73aca4cb74c2fa160c047fa59248048b65938e3d401
MD5 598fd3009335bb8256e4e6b391e373cf
BLAKE2b-256 925d4e31444362f0c84ebf580f7f536ca8c8300ce1b628073328da3a8907b318

See more details on using hashes here.

Provenance

File details

Details for the file aidoc-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: aidoc-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for aidoc-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dbed0318ec18fd578db169cd077b92f64d5d9a2484a3539d09e31d65c1a0e8bb
MD5 7ac60f7530169ef575c8f71e558417ba
BLAKE2b-256 b9ed4c0e756a256463e1e664ef1cca37b1985a1ebdbd81595a093bb5e5114994

See more details on using hashes here.

Provenance

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