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

https://github.com/sanketdg/gitdl

Download GitHub repositories with a single command.
https://github.com/sanketdg/gitdl

git github

Last synced: 6 months ago
JSON representation

Download GitHub repositories with a single command.

Awesome Lists containing this project

README

          

# gitdl

Download zips of github repositories easily.

[![Build Status](https://travis-ci.org/SanketDG/gitdl.svg?branch=master)](https://travis-ci.org/SanketDG/gitdl) [![Coverage Status](https://coveralls.io/repos/github/SanketDG/gitdl/badge.svg?branch=master)](https://coveralls.io/github/SanketDG/gitdl?branch=master)

## Installation

Clone the repository and cd to it. Then do:
```
$ python setup.py install
```

## Usage

The point of `gitdl` is to quickly get something from GitHub.

### Download a repo with the best match

```
$ gitdl bootstrap
```

This will search for bootstrap, and find the best match and download the
zip for it.

### Download an exact repo

```
$ gitdl -e nvbn/thefuck
```

When `gitdl` is passed with `-e` it expects a {author}/{repo} format to
download the exact repo from GitHub.

### Search for a repo

```
$ gitdl search "intermediate python"
```

This will search GitHub and present the results in a tabular format.

## Development

### Testing

To run the tests:

```
$ py.test
```

To run the tests with coverage:

```
$ py.test --cov
```