Skip to main content

Command line interface using gitignore.io API

Project description

# pygi

Command line interface using gitignore.io API

## Installation:

```
# pip install pygi
```
## Usage:

```
$ gi --list
actionscript
ada
agda
...
yii2
zendframework
zephir
$ gi vim werckercli > .gitignore
$ cat .gitignore

### Vim ###
# swap
[._]*.s[a-w][a-z]
[._]s[a-w][a-z]
# session
Session.vim
# temporary
.netrwhist
*~
# auto-generated tag files
tags


### WerckerCLI ###
_steps
_builds
_cache
_projects

```

**pygi** also can be used as a library too:
```python
>>> import pygi
>>> gitignores = pygi.list()
>>> len(gitignores)
290
>>> gitignores[4]
'android'
>>> print(pygi.gitignores('vim', 'werckercli'))

### Vim ###
# swap
[._]*.s[a-w][a-z]
[._]s[a-w][a-z]
# session
Session.vim
# temporary
.netrwhist
*~
# auto-generated tag files
tags


### WerckerCLI ###
_steps
_builds
_cache
_projects

```




s

Project details


Download files

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

Source Distribution

pygi-1.0.tar.gz (13.9 kB view hashes)

Uploaded Source

Built Distribution

pygi-1.0-py2.py3-none-any.whl (2.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page