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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
repathlib-0.1.4.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for repathlib-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d086433ddad76603d078f7d9969d14f198f90a6ee7a00d017089441d0c29dcfb |
|
MD5 | 10f04a9fbb0777f0d185248531dd3159 |
|
BLAKE2b-256 | a6cbd3d735ab9b8748825062cda231f7bf1853880fc37f105050d35df2d0ba16 |