Utility for checking whether a path is ignored by ignore files like .gitignore
Project description
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
.gitignoresyntax (subset) - Works with any ignore file format
- Handles nested ignore files
- Caches ignore file contents for performance
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file isignored-0.1.0.tar.gz.
File metadata
- Download URL: isignored-0.1.0.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e341daf3c7aa29cefa0540ff77c1fe1de6cebc05c86c17648a47a56287347ec7
|
|
| MD5 |
b63ed27b71667c86658f556278b593e3
|
|
| BLAKE2b-256 |
e85f11874a14ab6d2fa63def9dc84b98a91289b672f0a238fd22c60615158a51
|
Provenance
The following attestation bundles were made for isignored-0.1.0.tar.gz:
Publisher:
publish.yml on nielsrolf/isignored
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
isignored-0.1.0.tar.gz -
Subject digest:
e341daf3c7aa29cefa0540ff77c1fe1de6cebc05c86c17648a47a56287347ec7 - Sigstore transparency entry: 362558256
- Sigstore integration time:
-
Permalink:
nielsrolf/isignored@6ab7c922780f2c88f224a26d770dae54ba6db048 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/nielsrolf
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6ab7c922780f2c88f224a26d770dae54ba6db048 -
Trigger Event:
release
-
Statement type:
File details
Details for the file isignored-0.1.0-py3-none-any.whl.
File metadata
- Download URL: isignored-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca92b2f2bd32e57967727a4c5f09051cf4dda9c390e483bb268f9503bf8c11fb
|
|
| MD5 |
1d34784e4a4206b945c49dd10bc93496
|
|
| BLAKE2b-256 |
394b56f18ced54faad29fec02d6bc7c535bce52dc9a60071a88446abd033109c
|
Provenance
The following attestation bundles were made for isignored-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on nielsrolf/isignored
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
isignored-0.1.0-py3-none-any.whl -
Subject digest:
ca92b2f2bd32e57967727a4c5f09051cf4dda9c390e483bb268f9503bf8c11fb - Sigstore transparency entry: 362558270
- Sigstore integration time:
-
Permalink:
nielsrolf/isignored@6ab7c922780f2c88f224a26d770dae54ba6db048 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/nielsrolf
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6ab7c922780f2c88f224a26d770dae54ba6db048 -
Trigger Event:
release
-
Statement type: