File System Query. Working with the file system is too verbose. Let's make it more like JQuery.
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 : print(n.abs)
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 GitHub page.
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|
|fsquery-0.1.8-py2-none-any.whl (4.1 kB) Copy SHA256 hash SHA256||Wheel||py2||Jul 1, 2018|
|fsquery-0.1.8-py2.py3-none-any.whl (4.1 kB) Copy SHA256 hash SHA256||Wheel||py2.py3||Jul 1, 2018|
|fsquery-0.1.8.tar.gz (7.0 kB) Copy SHA256 hash SHA256||Source||None||Jul 1, 2018|