Skip to main content

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_pattern = Match(filetype='f', name='*.sh')
found_files = find_files(path='/usr/bin', match=sh_files_pattern)

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.3.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file findtools-1.0.3.tar.gz.

File metadata

  • Download URL: findtools-1.0.3.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for findtools-1.0.3.tar.gz
Algorithm Hash digest
SHA256 3c0abae0b6d03916b759b7e475ab024e2f16c99ca244470919539fca6ea5e6e5
MD5 7c26666bd14130789e814ee0351967be
BLAKE2b-256 3ed18c9b22e5b97c907b3b925b9a4d7a31450fb448b07c5bc33346a13a4d5d9b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page