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.5.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file repathlib-0.1.5.tar.gz
.
File metadata
- Download URL: repathlib-0.1.5.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c01c2c37f999dc7687ce5ef3155259d1641b81623e42340836c42b03604b4ad |
|
MD5 | cb6257d631f2c88b7299759fd4b0f640 |
|
BLAKE2b-256 | 6880a2292f500ac98de4bb036d7e2df8a35ff6cc73ba8749c1e420d5f8625959 |
File details
Details for the file repathlib-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: repathlib-0.1.5-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02930aa9c57cb7e3269ddcf1d7e887b81746ab5e9dfe846a027b0c02e14df719 |
|
MD5 | e2448d6aaf8da153128c96de74b13891 |
|
BLAKE2b-256 | 44059aa98a9752ad81b7612a62dc1e832aba554d7dfe41342dc58005eb7b9b95 |