Skip to main content

PyPI

aidoc

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

Requirements

Installation

  • globally install the package
python3 -m pip install aidoc
  • (recommended) create a virtual environment and install the package
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.

Metadata

Release files for aidoc 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aidoc 0.1.5
File Size Uploaded Provenance
aidoc-0.1.5.tar.gz 18.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aidoc 0.1.5
File Interpreter ABI Platform
aidoc-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 36.3 kB

Release files / aidoc-0.1.5.tar.gz

Download URL aidoc-0.1.5.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b3e3a1fa5bf4cefa0bc8a9b2dceca3ef5216f41df0aa7cbf950ac7b536c343c2
BLAKE2b-256 checksum
How to use checksums
ae6f86d4803c5b24b38145742ee2bb74aeb79dcc3eae0b5156882a13474ece36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / aidoc-0.1.5-py3-none-any.whl

Download URL aidoc-0.1.5-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
15539ea3756c0c3c36105991f05c04886e93a527d3780dfe766eeedaae09f307
BLAKE2b-256 checksum
How to use checksums
154fa45f931773bd3535d38073298741608729c687b3c518d2c330b1c53f3ea0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Security for aidoc 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page