Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sdushantha/gitdir
Download a single directory/folder from a GitHub repo
https://github.com/sdushantha/gitdir
directory downloader folder github
Last synced: 7 days ago
JSON representation
Download a single directory/folder from a GitHub repo
- Host: GitHub
- URL: https://github.com/sdushantha/gitdir
- Owner: sdushantha
- License: mit
- Created: 2019-02-27T07:53:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-13T09:54:06.000Z (12 months ago)
- Last Synced: 2024-05-01T14:47:54.556Z (9 months ago)
- Topics: directory, downloader, folder, github
- Language: Python
- Homepage:
- Size: 48.8 KB
- Stars: 221
- Watchers: 7
- Forks: 26
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - sdushantha/gitdir - Download a single directory/folder from a GitHub repo (Python)
README
# gitdir
- Minimal and colorful output 🌈
- Works on **Linux**, **MacOS**, and **Windows**
- Support recursive downloading
## Install
```bash
$ pip3 install --user gitdir# Yes, thats all :)
```## Usage
```
usage: gitdir [-h] [--output_dir OUTPUT_DIR] [--flatten] urls [urls ...]Download directories/folders from GitHub
positional arguments:
urls List of Github directories to download.optional arguments:
-h, --help show this help message and exit
--output_dir OUTPUT_DIR, -d OUTPUT_DIR
All directories will be downloaded to the specified
directory.
--flatten, -f Flatten directory structures. Do not create extra
directory and download found files to output
directory. (default to current directory if not
specified)
```## Packge Entry
You can use `python -m gitdir` / `python3 -m gitdir` in case the short command does not work.
**Exiting**
To exit the program, just press ```CTRL+C```.
## License
MIT LicenseCopyright (c) 2019 Siddharth Dushantha