Skip to main content

Recursively search files

Project description

            Tests Passing    GitHub pull requests    License


Report Bug · Request Feature · Ask Question · Report security bug


Alt


Table of Contents

Requirements

Here's a breakdown of the packages needed and their versions:

  • rich (version 13.7.0)

[!NOTE] The software has been developed and tested using Python 3.12.1. The minimum required version to run the software is Python 3.6. Although the software may work with previous versions, it is not guaranteed.

Installation

From PyPI

findr can be installed easily as a PyPI package. Just run the following command:

pip3 install pyfindr

[!IMPORTANT] For best practices and to avoid potential conflicts with your global Python environment, it is strongly recommended to install this program within a virtual environment. Avoid using the --user option for global installations. We highly recommend using pipx for a safe and isolated installation experience. Therefore, the appropriate command to install findr would be:

pipx install pyfindr

The program can now be ran from a terminal with the findr command.

Manual installation

If you prefer to install the program manually, follow these steps:

[!WARNING] This will install the version from the latest commit, not the latest release.

  1. Download the latest version of findr from this repository:

    git clone https://github.com/YisusChrist/findr
    cd findr
    
  2. Install the package:

    poetry install
    
  3. Run the program:

    poetry run findr
    

Uninstall

If you installed it from PyPI, you can use the following command:

pipx uninstall pyfindr

Usage

Search for a match in file contents.


Search for a match in filenames.


usage: findr key
             [--path PATH]
             [--mode {contents,filenames}]
             [--max-depth MAX_DEPTH]
             [--skip-dotfiles]
             [-h] [-v] [-d] [-V]

Recursively search files

Main Options:
  key                   The string to search for.
  --path PATH           the path to search under (default: D:\Documents\development\findr)
  --mode {contents,filenames}
                        The search mode. Default is 'contents'.
  --max-depth MAX_DEPTH
                        maximum depth for recursive search
  --skip-dotfiles       skip dotfiles

Miscellaneous Options:
  -h, --help            Show this help message and exit.
  -v, --verbose         Show log messages on screen. Default is False.
  -d, --debug           Activate debug logs. Default is False.
  -V, --version         Show version number and exit.

Contributors

How do I contribute to findr?

Before you participate in our delightful community, please read the code of conduct.

I'm far from being an expert and suspect there are many ways to improve – if you have ideas on how to make the configuration easier to maintain (and faster), don't hesitate to fork and send pull requests!

We also need people to test out pull requests. So take a look through the open issues and help where you can.

See Contributing for more details.

License

findr is released under the GPL-2.0 license.

Credits

[!NOTE] Credits to Julynx for creating the original project. I only make improvements in his code based on my preferences to customize it. All the ideas and the base of the script are his.

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

pyfindr-1.0.2.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

pyfindr-1.0.2-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file pyfindr-1.0.2.tar.gz.

File metadata

  • Download URL: pyfindr-1.0.2.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.1 Windows/11

File hashes

Hashes for pyfindr-1.0.2.tar.gz
Algorithm Hash digest
SHA256 0bef720fb7a02eeecc8e9415af8160bd3c9c894d7cd8c0802113e9a5fc4309e9
MD5 1618919ba0b2610815464eec26ad35e8
BLAKE2b-256 6e1f27d884a92d4abd02feb2aeef473de296ce4859ad6670cda7211496385c67

See more details on using hashes here.

File details

Details for the file pyfindr-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyfindr-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.1 Windows/11

File hashes

Hashes for pyfindr-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 17d7ee2d95dd43bbc7ea5e9053153002ba070238647d46246e18926dde5da032
MD5 4dd0de45717c86f2bf8e40af6003558f
BLAKE2b-256 2dfc0a02864bf2dc1428fcca4e7da37dd754c0a66f7581b0663f8cbcad420210

See more details on using hashes here.

Supported by

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