A tool for grep
Project description
pyegrep
Pyegrep is a very similar package to Grep(on linux) in python
Raw use
from pyegrep.greps import grep_service
params = {
"before": 2,
"after": 3,
"patterns": ["xyz"],
"address": file_address,
"hide_colors": True,
"max_line_numbers": 1000,
"is_regex": False,
"is_case_sensitive" : False,
}
output = grep_service.grep(params)
print(output)
Installation
To install pyegrep, simply:
$ pip install pyegrep
On Debian systems:
coming soon...
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
pyegrep-1.0.11.tar.gz
(3.0 kB
view details)
File details
Details for the file pyegrep-1.0.11.tar.gz
.
File metadata
- Download URL: pyegrep-1.0.11.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c8f4730699df1e4ebacd51f0f5d2f5040c7be4fa99ceb46d9e0fd2dc91eac16 |
|
MD5 | 399ce287abafd71d863a15cf6395cbd5 |
|
BLAKE2b-256 | 935eb425a76eff27a433ee45062d3194f2d0ef142513bb2fd18d504412a6b8a1 |