Skip to main content

CLI for gitignore.io

Project description

gitignore

Python 3 gitignore fetcher based on gitignore.io

Install

# pip3 install giig

Usage

usage: giig [-h] [--list] [--search SEARCH] [--file FILE] [lang [lang ...]]

Download .gitignore files from gitignore.io

positional arguments:
  lang                  language, IDE or OS to include in the .gitignore file

optional arguments:
  -h, --help            show this help message and exit
  --list, -l            list all language, IDE or OS options
  --search SEARCH, -s SEARCH
                        search list of options and print matches
  --file FILE, -f FILE  specify which file to write to

Use as library

import giig

# get list of languages, IDEs, etc.
giig.get_list()

# get list of languages, IDEs, etc.
giig.search(term)

# get gitignore for one/several languages, IDEs, etc.
# where options is a list of terms
giig.get_ignore(options)

Todo

  • make giig print to stdout without -f
  • add cache (don't need to query gitignore.io everytime)

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

giig-0.2.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file giig-0.2.tar.gz.

File metadata

  • Download URL: giig-0.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for giig-0.2.tar.gz
Algorithm Hash digest
SHA256 3f46970b568b2954c7d3abb487b003cdb122551522ec8a6f93d632fe3abf862f
MD5 02fd8e624bc0e84f2179cdfa0ad2ca2d
BLAKE2b-256 a74cab878a81cc2382bf126c9589d0ac2cd97328b886496b3a1eb6807896d7f6

See more details on using hashes here.

Supported by

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