Github repo -> prompt string
Project description
repo2prompt
This is a simple package with minimal dependencies that turns a Github Repo's contents into a big prompt for long-context models.
this work for repos containing rust, python, javascript containing via the following file types: '.py', '.ipynb', '.html', '.css', '.js', '.jsx', '.rst', '.md', '.rs'
Example Usage:
from repo2prompt.extraction import extract_repo
extract_repo(github_url="https://github.com/vllm-project/vllm/tree/main", github_token="your_github_token")
Or
from repo2prompt.extraction import extract_repo
extract_repo(github_url="https://github.com/vllm-project/vllm/tree/main") # os.getenv("GITHUB_TOKEN") used internally
an important thing to note, github only allows 5000 requests per hour, so be careful
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Repo2Prompt-0.1.2.tar.gz.
File metadata
- Download URL: Repo2Prompt-0.1.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c42b46b7368dee2c25e8c1ed991cee3ae21b14415e2d4eaf0f047c61605d4b1
|
|
| MD5 |
ad717205eb379f02787d1990ca135512
|
|
| BLAKE2b-256 |
4d74605ba1b9803581e2de361164a64f58a1712680fafe8c861b4554e42c9cac
|
File details
Details for the file Repo2Prompt-0.1.2-py3-none-any.whl.
File metadata
- Download URL: Repo2Prompt-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d15ba0eecba375fbaf797b378ffb3b9dfcd9d375938dfdf12080d3c77d7b7cba
|
|
| MD5 |
af55cd817b4ac6e34d894339bcef450d
|
|
| BLAKE2b-256 |
6eadef00378afcac224cb935b65d920995628234ff51f4353f1ec82fd796200b
|