Skip to main content

A parser for gitignore files

Project description


Gitignorant is (aspires to be)

  • a spec-compliant .gitignore file parser and matcher
  • for Python 3.6 and newer
  • with full type hinting and test coverage
  • and nothing you don't need


  • Parses .gitignore (and .gitignore style) files
  • Matches against list of parsed rules with the same semantics as Git ("last rule wins")


  • Trees of .gitignore files are not directly supported, but can be supported by client code.

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

gitignorant-0.1.2.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

gitignorant-0.1.2-py3-none-any.whl (4.6 kB view hashes)

Uploaded 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