Skip to main content

isignored

Utility for checking whether a path is ignored by ignore files like .gitignore.

Installation

pip install isignored

Usage

from isignored import is_ignored

# Check if a file is ignored by .gitignore
is_ignored("path/to/file.log")  # True if ignored

# Check against multiple ignore files
is_ignored("path/to/file", [".gitignore", ".dockerignore"])

# Check with no ignore files
is_ignored("path/to/file", [])  # Always False

Features

  • Simple API with one main function
  • Supports .gitignore syntax (subset)
  • Works with any ignore file format
  • Handles nested ignore files
  • Caches ignore file contents for performance

Metadata

Release files for isignored 0.1.1

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

Source distribution (sdist)

Source distribution for isignored 0.1.1
File Size Uploaded Provenance Actions
isignored-0.1.1.tar.gz 13.2 kB With provenance Details for isignored-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for isignored 0.1.1
File Interpreter ABI Platform Actions
isignored-0.1.1-py3-none-any.whl Python 3 none any Details for isignored-0.1.1-py3-none-any.whl

Total release size: 17.8 kB

Release files / isignored-0.1.1.tar.gz

Download URL isignored-0.1.1.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
510570cc196f804ac74bea56600d083ecb6f19e3ad862cf32f26a3533ad11f9f
BLAKE2b-256 checksum
How to use checksums
b63cbbbbdf055db6b89eb47cd571f741ef3c8e38a2de3ea228700b649b218a1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 8, 2025.

Transparency log

Release files / isignored-0.1.1-py3-none-any.whl

Download URL isignored-0.1.1-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df28ba95b067a1e34c4d7e27d6c984ff98d9cc0b6c42183402dfeda3d80ecf27
BLAKE2b-256 checksum
How to use checksums
4ce94f76f5c1c9732fffda468fec540ab28d2d94d7e3f46bcde2fe71a9c762bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 8, 2025.

Transparency log

Security for isignored 0.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for isignored-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 8, 2025.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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