Skip to main content

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

Print list

Print list of all possible options for gitignore.io

giig -l

Search

Search for specific term (e.g. python)

giig -s python

Print to stdout

giig python

Write .gitignore file

giig -f -- python

Use custom file

giig -f custom-file.txt python

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)

Metadata

Release files for giig 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for giig 0.3.2
File Size Uploaded Provenance Actions
giig-0.3.2.tar.gz 3.4 kB Without provenance Details for giig-0.3.2.tar.gz

Release files / giig-0.3.2.tar.gz

Download URL giig-0.3.2.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ef368e27649169e98c2f6dbec8a482ce6e0404b949e61a175e71474e14aa5611
BLAKE2b-256 checksum
How to use checksums
fc1e82c2c259a7c99f099b7dc53eb0efcf49bc47c77b3ece0dc6e546024ee7d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Security for giig 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page