Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

File System Query. Working with the file system is too verbose. Let's make it more like JQuery.

Project description

File System Query.

Working with the file system is too verbose.

FSQuery provides a way of thinking about the file system inspired by JQuery.

An FSQuery is created from a particular director with a number of terms added as modifiers.

A simple example :

from fsquery import FSQuery

fsq = FSQuery("/home/myaccount").NoFollow(".git").Ext(".py").FileOnly()
for n in fsq :

This FSQuery searches all directories under /home/myaccount, except directories with ".git" in their name.

It matches files with a ".py" extension. And the FileOnly() suppresses returning directories.

See more documentation on the README on GitHub.

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 fsquery, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size fsquery-0.3.0-py3-none-any.whl (5.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size fsquery-0.3.0.tar.gz (7.4 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