Skip to main content

Installing and using PyFinder

Introduction

PyFinder allows you either to find files in the file-system or some text inside files. It provides a library (the pyfinder.py file) and a script called pyfinder, that can be executed from the command line.

Supported Python versions

PyFinder requires Python version 3.3 or above.

Installation instructions

PyFinder is only released as a source distribution. Installing by pip is the simplest and preferred way on all systems:

$ pip install pyfinder

Otherwise download the source tarball from http://pypi.python.org/pypi/pyfinder, uncompress it, enter the pyfinder-x.y directory and then run the install command:

$ python setup.py install

How to use PyFinder

To use the pyfinder module just import it and call its functions. Here is some examples:

>>> import os
>>> import email
>>> import pyfinder
>>> for file in pyfinder.file_finder('message.py', os.path.dirname(email.__file__)):
...     print(os.path.basename(file))
...
...
message.py
>>> for match in pyfinder.file_inspector(pyfinder.__file__, 'def file_*'):
...     print(match, end='')
...
...
def file_finder(pattern: str, top_dir: str=os.curdir, recursive: bool=False):
def file_inspector(file_name: str, pattern: str):

For more information about the module usage look at its documentation (pyfinder.__doc__). There is also a pyfinder script that allows you to easily find files and text inside files from the command line. For information about the script usage look at the output of pyfinder -h.

Metadata

Release files for pyfinder 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyfinder 0.2
File Size Uploaded Provenance Actions
pyfinder-0.2.tar.gz 2.7 kB Without provenance Details for pyfinder-0.2.tar.gz

Release files / pyfinder-0.2.tar.gz

Download URL pyfinder-0.2.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
681cf2dcdab2917aac6e5295a6501a3c3c6f4711faf4695a78d045b4c3f65500
BLAKE2b-256 checksum
How to use checksums
ecd1bd4f7fcd2443afdca5c636f7392e52854fc37273608a450e8cc565a1695e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pyfinder 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page