Skip to main content

Extract files or directories from a git repository

Project description

MIT license PyPI version fury.io

git-extract

Extract files or directories from a git repository

Installation

$ pip install git-extract --upgrade

Official PyPi Repository

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

git_extract-1.1.4.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

git_extract-1.1.4-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file git_extract-1.1.4.tar.gz.

File metadata

  • Download URL: git_extract-1.1.4.tar.gz
  • Upload date:
  • Size: 3.6 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

Hashes for git_extract-1.1.4.tar.gz
Algorithm Hash digest
SHA256 2ebff47201f363d8a6f7a97e2ced3eac0c63f766236a95c1cade28b13161ed70
MD5 dacbbeb3e554166952651740726bcd18
BLAKE2b-256 311fcb1ee96f1520e316bc0646dfdf6d7dd7f00d3afb49506717df5164fa05b8

See more details on using hashes here.

File details

Details for the file git_extract-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: git_extract-1.1.4-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

Hashes for git_extract-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 032c010ed6aecd9dd33d84a47e2aa4cf745244e7099e450b1dae7b2c74750ad9
MD5 97cbf53ad24730850927d54d98a20995
BLAKE2b-256 1a0b112e89d5a6e16cbe7ff15c6d60c8de057edcf0e868556ed0c760edba96be

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page