Skip to main content

tool to search a directory tree for files matching some criteria, in a way similar to GNU find

Project description

PyFind

This module provides a simple tool to search a directory tree for files matching some criteria, in a way similar to GNU find.

It works both from command line and as a module.

A sample: from pyfind import Search

# Finds all files greater than 1 MiB, created in the last 25 minutes,
# whose name ends in '.py'
for found in Find('.', '-size +1m -a -cmin -25 -a -name *.py').find():
	print found

Also, it provides some extension switches: -Xdate and -Xhour, to test date and times in a more user-friendly way (and better than -xnewerXY).

The code is given to the Public Domain.

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

pyfindtool-0.11.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyfindtool-0.11-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file pyfindtool-0.11.tar.gz.

File metadata

  • Download URL: pyfindtool-0.11.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for pyfindtool-0.11.tar.gz
Algorithm Hash digest
SHA256 3be5f3b6a05dca2ad34d8cfa5d6ee7b7b8c489086984447bcd91c7c0613e44a2
MD5 87420d5e49c41cc3c5cc7f3753dbda0d
BLAKE2b-256 180e59172faa7feec125d2e45cc0ea4a0df6c160568fcd8151b8b2ad35edc4ab

See more details on using hashes here.

File details

Details for the file pyfindtool-0.11-py3-none-any.whl.

File metadata

  • Download URL: pyfindtool-0.11-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for pyfindtool-0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 4e889de2821bb4cf2a536c45327e0f962c6947a140054f912f0e375691f67ac1
MD5 444446cc3868cb19b14846b3b39306ba
BLAKE2b-256 f284b80b9195942bcef180b2a000a6035e93e4c86837207ec9532202612f2ca6

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