Skip to main content

pathlib with regular expressions

Project description

repathlib

repathlib is a package that combines repathlib and re, enabling you to search, match, etc., on Path objects, and to search directories with Path.reiterdir:

from repathlib import Path
docs = Path('docs')
docs.search('d[a-z]+')

<re.Match object; span=(0, 4), match='docs'>

list(docs.reiterdir('\.rst'))

[PosixPath('docs/api.rst'), PosixPath('docs/index.rst')]

Complete documentation is on readthedocs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
repathlib-0.1.5-py3-none-any.whl (4.6 kB) Copy SHA256 hash SHA256 Wheel py3
repathlib-0.1.5.tar.gz (3.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page