Recursively search files
Project description
Report Bug · Request Feature · Ask Question · Report security bug
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.
-
Download the latest version of findr from this repository:
git clone https://github.com/YisusChrist/findr cd findr
-
Install the package:
poetry install
-
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyfindr-1.0.1.tar.gz
.
File metadata
- Download URL: pyfindr-1.0.1.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.1 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 252770a36c05a4b12344c145899c98a83ee8a55464841550cb047388daa5ad75 |
|
MD5 | 16b63960c586a5bc7aeb89cb80f1ee45 |
|
BLAKE2b-256 | 3180b74c29c26eec0abcc1e08671960402df9573af083b17e9243f96479242f1 |
File details
Details for the file pyfindr-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: pyfindr-1.0.1-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.1 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bc3358dd74456aea9debf27466cf4871ca35bd5e18c4654f2564100f76222bb |
|
MD5 | d543eb77f344e2bbe8f709b5ead12345 |
|
BLAKE2b-256 | fd79b5f647d1203587084e80c23353079b91b145f8e7237c4f2aeba8dd6976d3 |