Code fetch is a command line tool for fetching code from a single file on GitHub instead of cloning the whole repository.
Install the package from PyPi:
pip install code_fetch
or pip3 install code_fetch
Install the package from source:
git clone https://github.com/mordy-python/code-fetch.git
cd code-fetch
python setup.py install
python -m code_fetch [OPTIONS] USER REPO FILE
Options:
--save Save the file to disk
--save-file TEXT The output file
--help Show this message and exit.