Skip to main content

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.5.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

tag_matcher-0.0.5-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file tag-matcher-0.0.5.tar.gz.

File metadata

  • Download URL: tag-matcher-0.0.5.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for tag-matcher-0.0.5.tar.gz
Algorithm Hash digest
SHA256 f854eb012d807004cfd2e2be0c5801c62144cfd73e935a61cb1c55b1e19a8801
MD5 ab29eb90c5e24c9c648d68fd643891e4
BLAKE2b-256 dd94bc34f09da39d0a64faec63e2c7320a0cc68d7c0287a47423eaa7139d68cf

See more details on using hashes here.

File details

Details for the file tag_matcher-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: tag_matcher-0.0.5-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.9.13

File hashes

Hashes for tag_matcher-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 03448c4d8b7bd9939e97080fb38a6c006fe4fc0ff5de352972ce32fad45eebd8
MD5 19ebf75a008dedd72d4ad0cbd9227347
BLAKE2b-256 d240fd5cdac3e80df5b2b410f14048340d14be97fb17b11bf64fe6ad10bad68c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page