A lightweight tag matcher
Project description
Tag Matcher
A lightweight tag matcher for python
Setup
Install the package via pip:
pip install tag-matcher
Usage
First, import the module:
import tagmatcher
Then, execute tag match queries like so:
is_match = tagmatcher.match(query_str="foo~bar", tags=["foo", "bar])
In this case, is_match
will equal true.
Supported Operators
~
: AND
+
: OR
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
tag-matcher-0.0.2.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file tag-matcher-0.0.2.tar.gz
.
File metadata
- Download URL: tag-matcher-0.0.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73e168a6e139a8afe9c17f31ebbb0fb41c1456007f6c54526791ed3232171341 |
|
MD5 | dccd3c20464f9b075c811e19316bea35 |
|
BLAKE2b-256 | e312acd29c9f7945cc86c65ccae728bc719591a89aa58d27adc705bc318c7393 |
File details
Details for the file tag_matcher-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: tag_matcher-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72b4022e82de0108dc7b6d40371e4de6cff7bfad354ffbf674941c1cfb1c7eb6 |
|
MD5 | 102b1a6e5598718a47bb797284b627a6 |
|
BLAKE2b-256 | a185942e0579c5d78bb41e45caeb017ef329075db91df112fe7749f79f6f9903 |