Skip to main content

grab only certain information from remote git repo and store them local

Project description


grab only certain information from remote git repo and store them local

general information

pygitgrab is not intended to be a replacement for git and it's capabilities. pygitgrab will not do housekeeping, meaning maintaing the local directory content like syncing or such a like. in case remote files or folders are dropped it is required to clean local folders manually.


the module is on pypi and can be installed with pip

run from cmd line

python3 -m pygitgrab -h

python3 -m pygitgrab -u user_name # user_name is optional, will prompt for password

github offers downloading for unauthenticed users only within certain rate limits [] in case downloading a bunch of serveral project files it is required to authenticate.

pygg.cfg structure

pygitgrab loads a pygg.cfg config file from the current directory to perform the required steps. the structure is as following:

# url to repo
# optional version to check out, defaults to 'master'
# optional destination folder given, defaults to 'repo_alias' (name of this section in the config file)
# pull_alias is just a name for the pull task
pull_alias="*.py", "new_folder"
# sample for pulling a license and store them at a different place
license="", "license/a_license.MD"

pygitgrab will create the directory structure as found in the remote git repo when pattern matching is used.

pygitgrab uses python configparser. general information regarding the syntax can be found there.

cmd line parameter

python3 -m pygitgrab -h 

usage: [-h] [-v] [-L] [-s] [-u [USER]]

grab files from remote git repo. for pygg.cfg file format refer to

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show version info and exit
  -L, --license         show license info and exit
  -s, --simulate        dry run, do not download files
  -u [USER], --user [USER]
                        authenticate with user, no user for prompt.
                        unauthenticated users have a lower rate for
                        downloading from github

3rd party licenses

when you move 3rd party license information into the special folder 'LICENSE' the cmd python3 -m pygitgrab -L will produce a summary of all found licences together with a 'LICENSE' file found in the current directory. use as python3 -m pygitgrab -L > LICENSES to produce a summary plain text file.


works only with github as backend.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pygitgrab, version 0.0.7
Filename, size File type Python version Upload date Hashes
Filename, size pygitgrab-0.0.7-py3-none-any.whl (7.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pygitgrab-0.0.7.tar.gz (5.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page