A tool for grep
Project description
Pyegrep
Pyegrep is a very similar package to Grep(on linux) for python
Raw use
.. code-block:: python
from 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:
.. code-block:: bash
$ pip install pyegrep
On Debian systems:
.. code-block:: bash
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.7.tar.gz
(3.0 kB
view details)
File details
Details for the file pyegrep-1.0.7.tar.gz
.
File metadata
- Download URL: pyegrep-1.0.7.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 | eda13e636f6e225f10197eb83c1f832c9c9f56482f2171f226864bde47c1a559 |
|
MD5 | 8c87166addb806423e1f423d80ea315f |
|
BLAKE2b-256 | 94de78aa35ba25bb340bf6a6a02b5bf76f54a21522d21c20aeac0b06147b8379 |