Skip to content

alirezadaghigh99/ReadmeAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project README

Description

This project consists of a collection of scripts aimed at automating the cloning of a GitHub repository and the generation of a README file for it. Here's a brief overview of each key component:

  • __init__.py: This file acts as the package initializer. The description provided suggests it serves as a placeholder for further explanation or integration.

  • main.py: This script automates the cloning of a GitHub repository and the subsequent generation of a README file. It:

    • Imports necessary modules and functions such as clone_github_repo and create_readme.
    • Defines a main function to handle the cloning and README generation process.
    • Uses the if __name__ == "__main__": block to execute the script directly with a specified GitHub repository URL.
  • clone.py: Responsible for cloning a GitHub repository from a specified URL to a local path. Key steps include:

    • Validating the repository URL.
    • Attempting to create a directory for cloning.
    • Executing the git clone command using subprocess.run.
  • create_readme.py: Automates the creation of a README file by:

    • Extracting dependencies from project files.
    • Leveraging a language model to analyze file purposes.
    • Identifying entry points in the project.
    • Compiling these insights into a structured README section and writing it to a README.md file.

This project automates documentation generation, which is particularly useful for open-source projects or any software requiring comprehensive documentation.

Dependencies

The following are the dependencies required for this project:

  • langchain_core.output_parsers
  • langchain_openai
  • readmeAI.create_readme
  • langchain_core.prompts
  • sys
  • langchain.chains
  • crawler.clone
  • subprocess
  • re
  • os

Ensure these dependencies are installed in your Python environment to run the scripts successfully.

Entry Points

The script can be executed via the following entry point:

  • new_readme/main.py

This entry point is responsible for initiating the cloning of a GitHub repository and the generation of a README file. Simply execute this script with a valid repository URL to begin the process.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages