Metadata-Version: 2.4
Name: glob2regex
Version: 0.1.0
Summary: Python library for converting glob formatted search to regex.
Author-email: Adam Schubert <adam.schubert@sg1-game.net>
License-Expression: LGPL-3.0
Project-URL: Homepage, https://github.com/Salamek/glob2regex
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: ruff; extra == "dev"
Requires-Dist: mypy; extra == "dev"
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Dynamic: license-file

# glob2regex

Converts glob search format to regex format

[![Python package](https://github.com/Salamek/glob2regex/actions/workflows/python-test.yml/badge.svg)](https://github.com/Salamek/glob2regex/actions/workflows/python-test.yml)


## Install


```bash
pip install glob2regex
```


## Example of usage


```python
from glob2regex import glob2regex

glob_search = '/home/*/ST-*/q[01-10]*.pdf'

regex = glob2regex(glob_search)

print(regex)

```
