CLI tool to search text in XLSX, XLS, CSV, TSV and ODS files. It works similarly to Unix\GNU Linux grep.
Project description
Owerview
xlsxgrep is a CLI tool to search text in XLSX, XLS, CSV, TSV and ODS files. It works similarly to Unix/GNU Linux grep.
Features
-
Grep compatible: xlsxgrep tries to be compatible with Unix/Linux grep, where it makes sense. Some of grep options are supported (such as
-r
,-i
or-c
). -
Search many XLSX, XLS, CSV, TSV and ODS files at once, even recursively in directories.
-
Regular expressions: Python regex.
-
Supported file types: csv, ods, tsv, xls, xlsx
Usage:
usage: xlsxgrep [-h] [-V] [-P] [-F] [-i] [-w] [-c] [-r] [-H] [-N] [-l] [-L] [-S SEPARATOR] [-Z]
pattern path [path ...]
positional arguments:
pattern use PATTERN as the pattern to search for.
path file or folder location
optional arguments:
-h, --help show this help message and exit
-V, --version display version information and exit.
-P, --python-regex PATTERN is a Python regular expression. This is the default.
-F, --fixed-strings interpret PATTERN as fixed strings, not regular expressions.
-i, --ignore-case ignore case distinctions.
-w, --word-regexp force PATTERN to match only whole words.
-c, --count print only a count of matches per file.
-r, --recursive search directories recursively.
-H, --with-filename print the file name for each match.
-N, --with-sheetname print the sheet name for each match.
-l, --files-with-match
print only names of FILEs with match pattern.
-L, --files-without-match
print only names of FILEs with no match pattern.
-S SEPARATOR, --separator SEPARATOR
define custom list separator for output, the default is TAB
-Z, --null output a zero byte (the ASCII NUL character) instead of the usual newline.
Examples:
xlsxgrep -i "foo" foobar.xlsx
xlsxgrep -c -H "(?i)foo|bar" /folder
Installation
pip install xlsxgrep
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 xlsxgrep-0.0.29.tar.gz
.
File metadata
- Download URL: xlsxgrep-0.0.29.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.26.0 setuptools/59.1.1 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be01cdbbb3150e350ba01893924ef85bc64b274d9e76ceb45ec8535f788b2462 |
|
MD5 | de4b377b6d577bfabffd759632ec0d4c |
|
BLAKE2b-256 | 73b993573c7a05f6b0f46936b1e8ff09fb142d9f0a9915f6d1524f57b6ef59ba |
File details
Details for the file xlsxgrep-0.0.29-py3-none-any.whl
.
File metadata
- Download URL: xlsxgrep-0.0.29-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.26.0 setuptools/59.1.1 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b49702ece3c0d05a7cda8356a858ed26fcee2ef871b145e4a42246e7cb83e62e |
|
MD5 | 01a7d4dd75c95328bcdab49765fab36a |
|
BLAKE2b-256 | 9810c61fa46c482d12ebaf3f9c833d65ddfe25b4c6a11eb68698e82c68b90735 |