Skip to main content

Grep tool with extensions for reading files in many different ways

Project description

gorpy

Good Old Regex and Python

[Read the Docs] (https://gorpy.readthedocs.io/en/latest/index.html)

Features

  • Written entirely in Python.
  • Grep-style interface for searching text
  • Pipes and union operator allow more advanced filtering of files and directory trees so that you only see the files you want
  • Easily look at text inside PDFs and Word documents
  • Parse XML and HTML as HTML and XML rather than just plain text
  • Powerful and extensible JsonPath implementation
  • Harness the power of pandas to analyze tabular documents (e.g., csv, fwf) using the same JsonPath query language
  • Easily update, delete, and open files found by the tool

How to use

  • Install Python 3.6 or newer.

  • Install

    # or PyPI
    pip install gorpy
    
  • Use command-line interface to do gorp stuff:

    python gorp.py <query>
    
  • or enter an interactive session:

    python gorp.py
    gorp> <query>
    # results
    # ...
    # more results
    gorp> <another query>
    
  • or access gorp programmatically in a Python session (see gorp.readfiles.GorpSession)

Contributing

Be sure to read the contribution guidelines.

Other stuff

TODO: add code coverage link (the below link is broken) (https://codecov.io/github/URL-OF-PROJECT?branch=master)](https://codecov.io/OTHER-URL-OF-PROJECT)

gorpy logo

gorpy_logo.PNG and gorpy_logo_small.PNG modified from https://commons.wikimedia.org/wiki/File:Gorp.jpg and https://www.python.org/static/community_logos/python-logo-master-v3-TM.png

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

gorpy-0.3.2.tar.gz (451.9 kB view details)

Uploaded Source

Built Distribution

gorpy-0.3.2-py3-none-any.whl (462.0 kB view details)

Uploaded Python 3

File details

Details for the file gorpy-0.3.2.tar.gz.

File metadata

  • Download URL: gorpy-0.3.2.tar.gz
  • Upload date:
  • Size: 451.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for gorpy-0.3.2.tar.gz
Algorithm Hash digest
SHA256 e0e6c0ba91fd5a775497fe60c4f8809c27f172d6c0311f72265daaebd122049c
MD5 1307c92d0941c82879eec3eb99b390dd
BLAKE2b-256 b1ef48de58ce3300fddb727c70d4caaa3139ef180bc27bfc99d3d3667c06916a

See more details on using hashes here.

File details

Details for the file gorpy-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: gorpy-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 462.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for gorpy-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3e45d9be7ab9834eef3215272d8c80744e5c1585d00cb43315d2cb6ae1e4f828
MD5 aa304bd827cb96f23bbf0f0784658dd4
BLAKE2b-256 03c0f9831bba76703d29f7d0ced112ae71593cbadcfb19c24bdb4db506fb0448

See more details on using hashes here.

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