Metadata-Version: 2.4
Name: python-matchit
Version: 0.1.2
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Summary: Bindings for matchit rust library.
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

**python-matchit** package contains binding for [matchit](https://docs.rs/matchit/latest/matchit/) rust library.

# Installation

```shell
pip install python-matchit
```

# Usage

```python
from matchit import Router
router = Router()
router.insert("/users/:id", "test_id")

res = router.at("/users/123")

assert res.route == "test_id"
assert res.params == {"id": "123"}

try:
    assert r.at("/noway")
except LookupError:
    print("Not found as expected")
```
