Skip to main content

A library for generating docstring for python programms.

Project description

DocGen-AI

DocGen-AI is a Python library that automatically generates docstrings for Python functions. It takes a Python file as input, generates docstrings for each function in the file, and outputs a new Python file with the generated docstrings.

Features

  • Automatically generate docstrings for Python functions
  • Easy to use: just pass the file name to the DocGen instance and call the write_to_file() method

Installation

You can install DocGen-AI by cloning the repository or using pip: git clone cd DocGen-AI/src pip install DocGen-AI

Usage

Here’s a simple example of how to use DocGen-AI:

  from docgen_ai import DocGen
  
  doc_gen = DocGen('./test.py')
  doc_gen.write_to_file()

In this example, DocGen is instantiated with the path to a Python file ('./test.py'). The write_to_file() method is then called to generate docstrings for each function in the file and output a new Python file with the generated docstrings.

License

DocGen-AI is licensed under the MIT License. See the LICENSE file for more information.

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

pydcogenerator-0.0.5.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

pydcogenerator-0.0.5-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

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