Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jmfiola/tag-matcher
A lightweight tag matcher for python
https://github.com/jmfiola/tag-matcher
python
Last synced: about 9 hours ago
JSON representation
A lightweight tag matcher for python
- Host: GitHub
- URL: https://github.com/jmfiola/tag-matcher
- Owner: jmfiola
- License: mit
- Created: 2022-07-01T00:20:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-14T18:41:56.000Z (over 2 years ago)
- Last Synced: 2024-11-11T13:40:50.623Z (6 days ago)
- Topics: python
- Language: Python
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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