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 hashes)