Catalog PyPI
PACKAGE EXPLORERView in registry

aidoc

PyPI

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

Versions collected1
Direct dependencies5From release 0.1.5
Last observed21 Oct, 10:32 UTC

README

Version 0.1.5 documentation

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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.57 Jan 20235

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
saikatkumardey/aidoc

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 10:32 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:f43e20b43f8b05004d7d538480311f616210171548bba00e5717fa81e3900597