Doriandarko/RepoToTextForLLMs
소개
RepoToTextForLLMs로 GitHub 저장소 분석을 자동화합니다. README, 저장소 구조 및 바이너리가 아닌 파일을 효율적으로 가져옵니다. 출력에는 저장소를 종합적으로 평가하는 데 도움이 되는 분석 프롬프트가 포함됩니다
AI 및 머신러닝What you can do
- README Retrieval: Automatically extracts the content of README.md to provide an initial insight into the repository.
- Structured Repository Traversal: Maps out the repository's structure through an iterative traversal method, ensuring thorough coverage without the limitations of recursion.
- Selective Content Extraction: Retrieves text contents from files, intelligently skipping over binary files to streamline the analysis process.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalRepoToTextForLLMs

Automates the analysis of GitHub repositories specifically tailored for usage with large context LLMs. This Python script efficiently fetches README files, repository structure, and non-binary file contents. Additionally, it provides structured outputs complete with pre-formatted prompts to guide further analysis of the repository's content.
Features
- README Retrieval: Automatically extracts the content of README.md to provide an initial insight into the repository.
- Structured Repository Traversal: Maps out the repository's structure through an iterative traversal method, ensuring thorough coverage without the limitations of recursion.
- Selective Content Extraction: Retrieves text contents from files, intelligently skipping over binary files to streamline the analysis process.
Prerequisites
To use RepoToTextForLLMs, you'll need:
- Python installed on your system.
- The
githubPython package. - A GitHub Personal Access Token configured as an environment variable (
GITHUB_TOKEN).
Getting Started
- Ensure Python and the required package (
PyGithub) are installed:
pip install PyGithub tqdm
- Set your GitHub Personal Access Token as an environment variable:
GITHUB_TOKEN = os.getenv('GITHUB_TOKEN', 'YOUR TOKEN HERE')
How to Use
- Place the script in your desired directory.
- Execute the script in your terminal:
python repototxt.py
- Enter the GitHub repository URL when prompted. The script will process the repository and output its findings, including the README, structure, and file contents (excluding binary files), accompanied by analysis prompts.
Contributing
Contributions to RepoToTextForLLMs are welcomed. Whether it's through submitting pull requests, reporting issues, or suggesting improvements, your input helps make this tool better for everyone.
License
This project is licensed under the MIT License.
관련 프로젝트 살펴보기
불러오는 중…