Your package description.
Project description
Crimson GitHub App
A Python package to easily download contents from GitHub repositories.
Installation
pip install crimson-github-app
Main Function
The package exposes one main function for downloading repository contents:
from crimson.github_app import download_repo_contents
# Download repository contents
download_repo_contents(
repo_name="username/repository",
dir_in_repo="path/to/directory",
output_dir="output",
git_token=None
)
Parameters
repo_name(str): Full repository name in the format "username/repository"dir_in_repo(str): Directory path within the repository to download fromoutput_dir(str, optional): Local directory to save files to. Defaults to "output"git_token(str, optional): GitHub token for private repositories. Required for private repos
Example
# Download public repository contents
download_repo_contents(
"crimson206/my-project",
"src/examples",
output_dir="downloaded_files"
)
# Download private repository contents
download_repo_contents(
"crimson206/private-repo",
"docs",
output_dir="local_docs",
git_token="your_github_token"
)
Requirements
- Python ≥ 3.9
- PyGithub
License
MIT License
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 crimson_github_app-0.1.2.tar.gz.
File metadata
- Download URL: crimson_github_app-0.1.2.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b10c34d02d878ccf819c990c13c782924ed0ea9251f3324bf625f54f2fd3080f
|
|
| MD5 |
c28de3d9aa655880a50818586ff7fdce
|
|
| BLAKE2b-256 |
8d48edd8a62f95abcb0014c7ff93801002a8198c5acd1b16bfd51a8fbb230586
|
File details
Details for the file crimson_github_app-0.1.2-py3-none-any.whl.
File metadata
- Download URL: crimson_github_app-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a418b199517f2fd25328b317009a6761c7ccd925475b71c92b435acdb16f0ea
|
|
| MD5 |
60803ecef6ddc7804cc33b70db2957b6
|
|
| BLAKE2b-256 |
6614aa7b2cff87c53e5d87029694f64f19ada7b7b123e14bdb441b3788bc0bc5
|