Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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