Skip to main content

younotyou

Filter a list of strings and/or paths based on include and exclude patterns.

Installation

Install with:

pip install younotyou

Convenient one stop shop to include and exclude strings using glob style pattern matching.

Usage

Patterns can be literals or glob style wildcard strings.
Exclusion patterns override include patterns, i.e. if an item matches an include pattern but also matches an exclude pattern, it will be excluded.

>>> from younotyou import younotyou
>>> strings = ["thispattern", "aPaTtErN", "mypatterns"]
>>> younotyou(strings, ["*pattern"])
['thispattern']
>>> younotyou(strings, ["*pattern*"])
['thispattern', 'mypatterns']
>>> younotyou(strings, ["*pattern*"], case_sensitive=False)
['thispattern', 'aPaTtErN', 'mypatterns']
>>> younotyou(strings, ["*pattern*"], ["my*", "*is*"], case_sensitive=False)
['aPaTtErN']
>>> younotyou(strings, exclude_patterns=["*PaT*"])
['thispattern', 'mypatterns']
>>> younotyou(strings, exclude_patterns=["*PaT*"], case_sensitive=False)
[]
>>> younotyou(strings, include_patterns=["*PaT*"], exclude_patterns=["*PaT*"], case_sensitive=False)
[]

Metadata

Release files for younotyou 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 younotyou 0.1.1
File Size Uploaded Provenance Actions
younotyou-0.1.1.tar.gz 2.9 kB Without provenance Details for younotyou-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 6.6 kB

Release files / younotyou-0.1.1.tar.gz

Download URL younotyou-0.1.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ca5af471172a566866a31463882d8930b8d9a355a4d8302d8f76a6f0d2fd4a5b
BLAKE2b-256 checksum
How to use checksums
a51cb9ede2fb1941a51a9031f440da17469607eaba717158520a90ec829c3fa1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

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

Download URL younotyou-0.1.1-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f22e0d0b436a008c158e1a60bffef0c1d35bee8f2e2c35350e281e41b46076c
BLAKE2b-256 checksum
How to use checksums
77cbec94e81bf1013bd07a232e6913ea2d4c8e1e351d9fe7e144a969a4d91a4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Security for younotyou 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.

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