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 :
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 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.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fsquery-0.3.0.tar.gz.
File metadata
- Download URL: fsquery-0.3.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b02d3ac751e77641d5e99b6e1cc655e0cab73c44a53236ff6ed6fca5d5a21b9e
|
|
| MD5 |
3fc7cb8f3dacff1489d649363e3077b1
|
|
| BLAKE2b-256 |
6454348452ead60cf665f1c0b93fbe1537c2763796d2d97d202119e381042f26
|
File details
Details for the file fsquery-0.3.0-py3-none-any.whl.
File metadata
- Download URL: fsquery-0.3.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e471db47d35226b619466f470e49dbf85541b811f76af3a16b3dfdae981eb390
|
|
| MD5 |
e1fd1236a4ee16a2fae9c6b176afc86e
|
|
| BLAKE2b-256 |
b4671d48937739c6f87e2b8734e19747e19924bf933f7d9a82d36682250deac6
|