Skip to main content

Python library for converting glob formatted search to regex

Project description

glob2regex

Converts glob search format to regex format

Python package

Install

pip install glob2regex

Example of usage

from glob2regex import glob2regex

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

regex = glob2regex(glob_search)

print(regex)

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

glob2regex-0.0.5.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

glob2regex-0.0.5-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file glob2regex-0.0.5.tar.gz.

File metadata

  • Download URL: glob2regex-0.0.5.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for glob2regex-0.0.5.tar.gz
Algorithm Hash digest
SHA256 bc9a4fdf1fde7fd7eeaebda555a52999f28db23ccfd93654d6dad8ed8e453537
MD5 0b640ec95dfaa796da8c63d77352c2f5
BLAKE2b-256 88ae0cb790d24fa8968082f67c7562a57e807a055d8500bc993d15723edebbeb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: glob2regex-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for glob2regex-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a403a386e762c6b564629c454ea9ee634d6408051b0addeaac82f61aed92953a
MD5 776a7011a8787b18cf570626c0d5a5e7
BLAKE2b-256 6e9879e562c08072fb61f477ec835b7b79b5592de8b2fdc5ea85912a96839efb

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