clone-subdir
Clone only a specific subfolder from a GitHub repository.
Installation
pip install clone-subdir
Usage
After installation, you can use the clone-subdir command directly:
clone-subdir https://github.com/a2aproject/a2a-samples/tree/main/samples/python/agents/a2a-mcp-without-framework
This will create a local directory:
./a2a-mcp-without-framework
If you want a custom name:
clone-subdir https://github.com/a2aproject/a2a-samples/tree/main/samples/python/agents/a2a-mcp-without-framework my-agent-example
How it works
The tool uses Git's sparse-checkout feature to efficiently clone only the specified subfolder without downloading the entire repository.
Release files for clone-subdir 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| clone_subdir-0.1.2.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| clone_subdir-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.0 kB
Release files / clone_subdir-0.1.2.tar.gz
| Download URL | clone_subdir-0.1.2.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2081abd2afdef5c9fc1a1b437f1f0b3b6f07da83c599db801335db0fa29110f6
|
|
BLAKE2b-256 checksum How to use checksums |
182a1be653bc4495dbaae3a2146876e8bdd0c22275c662e3834fbb809bf306c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.2
|
Release files / clone_subdir-0.1.2-py3-none-any.whl
| Download URL | clone_subdir-0.1.2-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
823db16167ed78dd33f08131c960837c2a888335f49ee5a363ff917ecd12f43d
|
|
BLAKE2b-256 checksum How to use checksums |
ffc38e97c5df10014df4ead08c01eade41d61a45837795d5602866e7db01db49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.2
|