Skip to main content

A package for generating Docstring for python.

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

docGen-AI-0.0.2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docGen_AI-0.0.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file docGen-AI-0.0.2.tar.gz.

File metadata

  • Download URL: docGen-AI-0.0.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.1

File hashes

Hashes for docGen-AI-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e6d2a26dada1b2c2e6623447f416ffc59fc28f4606574a85a0672ccebc12a13d
MD5 e9d7b70f2efcdd27c9e3f13b51637fb1
BLAKE2b-256 b4a06e992083df3fd7d7f10b86f80a24c23a8f7641895fd890b63c563dcca2c3

See more details on using hashes here.

File details

Details for the file docGen_AI-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: docGen_AI-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.1

File hashes

Hashes for docGen_AI-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ba28939d9a767569a84fd3cf7a0f84c8972e8e0bd19479c322b5efb519f6cc61
MD5 4a01e5031c1be4d5a0df6e8e1d4df8fd
BLAKE2b-256 681aa6fb0c9a103312013f9184ce5fe653e47bae6a7eb62e0a155a8af980b7fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page