Python implementation of GNU Findutils
Project description
findtools
=========
Findtools is a pythonic implementation of file search routines inspired by
GNU Findutils.
```python
from findtools.find_files import (find_files, Match)
# Recursively find all *.sh files in **/usr/bin**
sh_files = Match(filetype='',name='*.sh')
found_files = find_files(path='/usr/bin', match=sh_files)
for found_file in found_files:
print found_file
```
The above is equivalent to
<blockquote>
find /usr/bin -type f -name '*.sh'
</blockquote>
Installation
------------
You can install th library by using PyPI registry, e.g.
<blockquote>
pip install findtools
</blockquote>
Alternatively you can clone git repository
<blockquote>
git clone https://github.com/ewiger/findtools.git findtools && cd findtools
sudo python setup.py install
</blockquote>
=========
Findtools is a pythonic implementation of file search routines inspired by
GNU Findutils.
```python
from findtools.find_files import (find_files, Match)
# Recursively find all *.sh files in **/usr/bin**
sh_files = Match(filetype='',name='*.sh')
found_files = find_files(path='/usr/bin', match=sh_files)
for found_file in found_files:
print found_file
```
The above is equivalent to
<blockquote>
find /usr/bin -type f -name '*.sh'
</blockquote>
Installation
------------
You can install th library by using PyPI registry, e.g.
<blockquote>
pip install findtools
</blockquote>
Alternatively you can clone git repository
<blockquote>
git clone https://github.com/ewiger/findtools.git findtools && cd findtools
sudo python setup.py install
</blockquote>
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
findtools-1.0.0.tar.gz
(3.2 kB
view details)
File details
Details for the file findtools-1.0.0.tar.gz.
File metadata
- Download URL: findtools-1.0.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c056d9def11dd5be900f60a6f7b0c10c8aa040bc0bc07907d8ec6e06dbf2d4a
|
|
| MD5 |
3ca16005bea61b61c7370935bf06e0e7
|
|
| BLAKE2b-256 |
016f9eaedd6ab9a91cf2b3c585d3be4551aa3ab662cfca59046507e324a3e45c
|