find-from-files
Simple CLI application for searching keywords/phrases or regular expression patterns from text files.
Usage
usage: find-from-files [-h] [-l] [-r] [-s [SUFFIX ...]] [-S [SKIP ...]] [-a]
[-q] [-qq] base_directory search_string
This script can be useful, e.g., for analyzing log files. When used without the
--regex flag, it traverses through directories starting from the
<base_directory> and prints the name of the file containing <search_string> and
the line that it is on. This is handy if you want to quickly find the files
that contain the string you are looking for. When used with the --regex flag,
it searches for the <search_string> with Python regular expression function
re.findall() in the files, and prints a summary containing the matches and
their number. This allows you to search for all occurrences of a pattern in
files. If the --whole-line flag is used, the whole line is printed instead of
just the match (does nothing without the --regex flag).
positional arguments:
base_directory Base directory to start the search from.
search_string String/regex to search for.
options:
-h, --help show this help message and exit
-l, --whole-line Search for the whole line containing the search string.
Only works with the --regexp flag.
-r, --regexp Search using regular expression.
-s, --suffix [SUFFIX ...]
File suffix to search for. Files without this suffix
will be skipped.
-S, --skip [SKIP ...]
Skip folders that start with this prefix.
-a, --no-ansi Do not use ANSI codes for output. Redirections never
contain ANSI codes.
-q, --quiet Do not print skipped folders or files.
-qq, --quieter Do not print skipped folders or files, and only print
the files that contain the search string/pattern.
-V, --version show program's version number and exit
Metadata
Release files for find-from-files 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| find_from_files-1.0.2.tar.gz | 7.5 kB | Without provenance | Details for find_from_files-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| find_from_files-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for find_from_files-1.0.2-py3-none-any.whl |
Total release size: 17.4 kB
Release files / find_from_files-1.0.2.tar.gz
| Download URL | find_from_files-1.0.2.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86d8f9ec27d30c5b436fd4f91fe1368ccf8aa5584bd787c621e16fd2e57ceffe
|
|
BLAKE2b-256 checksum How to use checksums |
6e1ca4b2fba95962a509dfdb26e2ecc29f1551e55fc481f1638523790124cff7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.13.2 Linux/5.15.167.4-microsoft-standard-WSL2
|
Release files / find_from_files-1.0.2-py3-none-any.whl
| Download URL | find_from_files-1.0.2-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ef67a89274ad8ce5ac38281e7aa4ec2494103a737676eeff0066a32a2b8c308
|
|
BLAKE2b-256 checksum How to use checksums |
6784bbd6f1d7c6cf7b586f11062c7f68238b21c567d3a5fcca3e912d3ad5d0be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.13.2 Linux/5.15.167.4-microsoft-standard-WSL2
|
Security for find-from-files 1.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.