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...
Release files for pyegrep 1.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyegrep-1.0.11.tar.gz | 3.0 kB | Details |
Release files / pyegrep-1.0.11.tar.gz
| Download URL | pyegrep-1.0.11.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c8f4730699df1e4ebacd51f0f5d2f5040c7be4fa99ceb46d9e0fd2dc91eac16
|
|
BLAKE2b-256 checksum How to use checksums |
935eb425a76eff27a433ee45062d3194f2d0ef142513bb2fd18d504412a6b8a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|