Extract files or directories from a git repository
Project description
git-extract
Extract files or directories from a git repository
Installation
$ pip install git-extract --upgrade
Usage
Extract files with multiple patterns:
$ git-extract file https://github.com/mfdeux/git-extract --pattern "*.md" --pattern "*.py" --dest ~/Downloads/test --recursive
Extract directory with pattern:
$ git-extract dir https://github.com/mfdeux/git-extract --pattern "tests" --dest ~/Downloads/test
Patterns
Multiple patterns are acceptable -- as many as you want!
You can think of patterns as filters. When git-extract is looking throughout the git repository, it will match files or directories based on the patterns supplied.
All patterns are based on standard Python glob patterns.
You can read more about how to construct the patterns at: https://docs.python.org/3/library/glob.html
Project details
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
File details
Details for the file git_extract-1.1.5.tar.gz
.
File metadata
- Download URL: git_extract-1.1.5.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.3.0-1032-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fca114f29481ad8a5162d629711c607a9ed72e84a02983a3deef0e4b2e1787f5 |
|
MD5 | 29e34cb85c832da7036ead3c8ba7febb |
|
BLAKE2b-256 | 0f8fc3170aeccdef88ec200be4925d8a9a7b2aaa180932b250aaa0f270b691b2 |
File details
Details for the file git_extract-1.1.5-py3-none-any.whl
.
File metadata
- Download URL: git_extract-1.1.5-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.3.0-1032-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f21bbe331a93e0e053ace5218ccdf34be375569c4b79aa7ef20478668d9de6bd |
|
MD5 | 2ed4c4a109e71a09afbc8489d7f455de |
|
BLAKE2b-256 | 9b3be776fb30c0ad239e98722069f556484b91751ac588bdd4fecfbd408ba240 |