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-0.1.1.tar.gz
.
File metadata
- Download URL: git_extract-0.1.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.5 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 115b1cd4c0879bb7bb1ff4dc40a288fc896817bb007b668b91776a6b3f842dcb |
|
MD5 | 37a25fa114f76ccf00ab271789e86699 |
|
BLAKE2b-256 | fc3cf1d81653cf766a93d64452907d0ae8e577f2453cbb1ef6cc51879e114b81 |
File details
Details for the file git_extract-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: git_extract-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.5 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83a31ceaec1c35fde2c910808a47c0ada9b8325cb04880f157ebbaf1d5ef513c |
|
MD5 | 014c5c1b8fa31ea9ec097014f5040d56 |
|
BLAKE2b-256 | cde5e194fed871b5e7f97946babf009694d63d95a2e4d2be1a024722fd7963c3 |