Skip to main content

Projet python qui documente automatiquement à l'aide de call api vos projets python, génère des readme et un fichier advisory.md avec des conseils sur votre projet

Project description

Python Docstring and README Generator

This project is a Python-based utility that automates the generation of docstrings and README files for Python projects. It also has the capability to generate advisory files. The project is designed to help developers save time and maintain consistency in their documentation.

About

The project consists of two main Python files: main1.py and utils1.py.

main1.py contains the main function that performs various tasks based on the provided arguments. It can generate and add docstrings to Python files, generate README files, and generate advisory files in the specified directory.

utils1.py contains several utility functions that are used by the main function. These include functions to extract function definitions from a Python file, extract key elements from a Python file, write changes to a Python file, and send code to ChatGPT for completion.

Getting Started

To get this project up and running on your local machine, follow the instructions below.

Prerequisites

You will need the following software installed on your machine:

  • Python 3.6 or higher
  • pip (Python package installer)

Installing

  1. Clone the repository to your local machine.
  2. Navigate to the project directory.
  3. Install the required Python packages using pip:
pip install -r requirements.txt

Running the project

To run the project, navigate to the project directory and run the following command:

python main1.py --docstring --Readme --advisory <your_directory>

Replace <your_directory> with the directory where you want the project to perform its tasks.

This command will generate and add docstrings to all Python files in the ./my_project directory.

Built Using

  • Python
  • ast (Python's Abstract Syntax Trees module)
  • OpenAI's ChatGPT

Contributing

If you would like to contribute to this project, please fork the repository, make your changes, and submit a pull request.

Authors

  • Matthieu Kaeppelin

Acknowledgments

  • OpenAI for their ChatGPT model
  • Python's ast module

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

elevendoc-0.1.2.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

elevendoc-0.1.2-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file elevendoc-0.1.2.tar.gz.

File metadata

  • Download URL: elevendoc-0.1.2.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for elevendoc-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1cfafcee103a371543178fce959c91d01e98ed4cb4aca5c2f28930aeb230408c
MD5 ffd1f7b2b5f1a35ab72fb425982267c4
BLAKE2b-256 630f40896b8b8f243ac216104f450b9c4109c25ec723e32cf345ca4e6ed85049

See more details on using hashes here.

File details

Details for the file elevendoc-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: elevendoc-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for elevendoc-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 38ebf31df9f720a3b271668fbceef6a1f0aeabc9cf97f72220819ab14165779a
MD5 7076160366dc045b79c8e3a5e62a7aa3
BLAKE2b-256 bf08680d945c89835c51253ab9477812110c12fd7a978169a41c352950d7deb5

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