Skip to main content

PathQuery is a tool to declaratively define file searches.

Project description

PathQuery is a tool to declaratively define file searches that returns a list of Path objects.


Search for all files recursively except in the node_modules folder and change its perms:

from pathquery import pathquery

for path in pathquery("yourdir").ext("js") - pathquery("yourdir/node_modules"):


To use:

$ pip install pathquery


Path properties can be inspected as part of the query:


Queries are also chainable:

for path in pathquery("yourdir").ext("pyc").is_symlink() - pathq("yourdir/node_modules"):

Project details

Download files

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

Files for pathquery, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size pathquery-0.3.0.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page