Metadata-Version: 2.1
Name: globsters
Version: 0.0.2
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.7
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# globsters

python & rust globsters

glob + lobster + rs (rs) = globsters

```python
from globsters import globster

# single
matcher_1 = globster("**/*.py")

assert matcher_1("foo/bar/baz.py")  # True
assert not matcher_1("foo/bar/baz.pyc")  # False

# single case insensitive
matcher_2 = globster("**/*.py", case_insensitive=True)
assert matcher_2("foo/bar/baz.PY")  # True

# multi (also works with negation)
matcher_3 = globster(["*.py", "*.txt"])
assert matcher_3("foo/bar/baz.py")  # True
assert matcher_3("foo/bar/baz.txt")  # True
assert not matcher_3("foo/bar/baz.pyc")  # False

# multi negation (also works with case insensitive)
matcher_4 = globster(["*.py", "!*.pyc"])
assert matcher_4("foo/bar/baz.py")  # True
assert not matcher_4("foo/bar/baz.pyc")  # False

```

