Skip to main content

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


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

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page