Copy a folder or file from GitHub without cloning (CLI)
Project description
ghcp
Copy a folder or file from a GitHub repository using the GitHub API. No git clone, no .git/ left behind.
Install
pipx install ghcp # once published
# or for local dev:
pipx install -e .
Usage
ghcp https://github.com/<owner>/<repo>/tree/<ref>/<path> -o ./out --preserve
ghcp https://github.com/<owner>/<repo>/blob/<ref>/<path> -o ./myfile
Options
-o, --outOutput directory (default: current dir)--refBranch, tag or commit SHA (default: repo default branch)--tokenGitHub token (or setGITHUB_TOKEN)--preserveKeep full repo path under the output directory-q, --quietReduce output
Private repos / higher rate limits
Provide a token via --token or GITHUB_TOKEN environment variable.
Limitations
- Git submodules and symlinks are skipped (not resolved).
- Very large repos may hit rate limits without a token.
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 ghcp-0.1.3.tar.gz.
File metadata
- Download URL: ghcp-0.1.3.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f898be4c31f061da9c773345dc0ba52c7b3c2dad54c88399e078aa42e49ecc8d
|
|
| MD5 |
891eb5a2c928ad968c739b6dfb2de19c
|
|
| BLAKE2b-256 |
f933c84a9c395f4847cad3f7d4158becd2cb73ceda76d04650d59fadea9de03f
|
Provenance
The following attestation bundles were made for ghcp-0.1.3.tar.gz:
Publisher:
release.yml on fayssal-elmofatiche/ghcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ghcp-0.1.3.tar.gz -
Subject digest:
f898be4c31f061da9c773345dc0ba52c7b3c2dad54c88399e078aa42e49ecc8d - Sigstore transparency entry: 571076821
- Sigstore integration time:
-
Permalink:
fayssal-elmofatiche/ghcp@e73836c1aca6dac0af09c45ced36e0ab73194c47 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/fayssal-elmofatiche
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e73836c1aca6dac0af09c45ced36e0ab73194c47 -
Trigger Event:
release
-
Statement type:
File details
Details for the file ghcp-0.1.3-py3-none-any.whl.
File metadata
- Download URL: ghcp-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3b2c4d318a557670d34a880c81fa2bdc5d727c1f34b0697165b15df7924a9b5
|
|
| MD5 |
359cf367cae6a5e8b58204731804f35b
|
|
| BLAKE2b-256 |
84b430f34bba593b9fbafa4cd5e16da20f900a33031e042cb4f9dda0bdabe2e3
|
Provenance
The following attestation bundles were made for ghcp-0.1.3-py3-none-any.whl:
Publisher:
release.yml on fayssal-elmofatiche/ghcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ghcp-0.1.3-py3-none-any.whl -
Subject digest:
a3b2c4d318a557670d34a880c81fa2bdc5d727c1f34b0697165b15df7924a9b5 - Sigstore transparency entry: 571076828
- Sigstore integration time:
-
Permalink:
fayssal-elmofatiche/ghcp@e73836c1aca6dac0af09c45ced36e0ab73194c47 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/fayssal-elmofatiche
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e73836c1aca6dac0af09c45ced36e0ab73194c47 -
Trigger Event:
release
-
Statement type: