Skip to main content

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

Metadata

Release files for Repo2Prompt 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Repo2Prompt 0.1.2
File Size Uploaded
Repo2Prompt-0.1.2.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Repo2Prompt 0.1.2
File Interpreter ABI Platform
Repo2Prompt-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.2 kB

Release files / Repo2Prompt-0.1.2.tar.gz

Download URL Repo2Prompt-0.1.2.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3c42b46b7368dee2c25e8c1ed991cee3ae21b14415e2d4eaf0f047c61605d4b1
BLAKE2b-256 checksum
How to use checksums
4d74605ba1b9803581e2de361164a64f58a1712680fafe8c861b4554e42c9cac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.1

Release files / Repo2Prompt-0.1.2-py3-none-any.whl

Download URL Repo2Prompt-0.1.2-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d15ba0eecba375fbaf797b378ffb3b9dfcd9d375938dfdf12080d3c77d7b7cba
BLAKE2b-256 checksum
How to use checksums
6eadef00378afcac224cb935b65d920995628234ff51f4353f1ec82fd796200b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.1

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page