Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amarlearning/github-sectory

CLI for downloading sub-directory of any GitHub repository
https://github.com/amarlearning/github-sectory

cli cli-app demo download github-downloads github-sectory hacktoberfest hacktoberfest2020 pip python sub-directory

Last synced: about 1 month ago
JSON representation

CLI for downloading sub-directory of any GitHub repository

Awesome Lists containing this project

README

        

# Github Sectory

[![Build Status](https://travis-ci.org/amarlearning/Github-Sectory.svg?branch=master)](https://travis-ci.org/amarlearning/Github-Sectory/)
[![Downloads](https://pepy.tech/badge/github-sectory)](https://pepy.tech/project/github-sectory)
[![MIT LICENSE](https://img.shields.io/pypi/l/pyzipcode-cli.svg)](http://amarlearning.mit-license.org/)

> CLI for downloading sub-directory of any Github repository using Github Content API!

## Demo

![Demo GitHub Sectory](https://www.amarpandey.me/projects/images/github-sectory.gif)

## Install

```
$ pip install github-sectory
```

## Usage

### Commands available

```
Pass the directory link as an argument-
$ github-sectory

Example:
$ github-sectory https://github.com/amarlearning/PyStalker/tree/master/version01

```

> **OR**

```
Pass the details as an arguments specified below-
$ github-sectory -u -r -d -b

Options:
-r, name of the repository where the folder/directory is present.
-d, name of the directory that you wish to download.
-u, username/organisation name of owner of repository.

-b, branch name of the repository, default is master [OPTIONAL].
```

**Note:** Default branch will be master

---

## Issues

You can report the bugs at the [issue tracker](https://github.com/amarlearning/Github-Sectory/issues)

**OR**

You can [tweet me](https://twitter.com/iamarpandey) if you can't get it to work. In fact, you should tweet me anyway.

---

## License

Built with ♥ by Amar Prakash Pandey([@amarlearning](http://github.com/amarlearning)) under [MIT License](http://amarlearning.mit-license.org/)

You can find a copy of the License at http://amarlearning.mit-license.org/