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-1.0.0.tar.gz (453.3 kB view details)

Uploaded Source

Built Distribution

gorpy-1.0.0-py3-none-any.whl (463.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gorpy-1.0.0.tar.gz
  • Upload date:
  • Size: 453.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.0 importlib-metadata/4.6.3 keyring/21.8.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.6

File hashes

Hashes for gorpy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c86146dfc8ec3819bb9a4077d2360883656aabb2d9e2ec32fa5219457db43f69
MD5 9b1e3bfebe6f628a1ecdfd41730d2605
BLAKE2b-256 b61466863cd4fb8309b87c789c33487bfabfb44bb1a2231474af866a757218c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gorpy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 463.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.0 importlib-metadata/4.6.3 keyring/21.8.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.6

File hashes

Hashes for gorpy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 beeb19e9a79dabd32218e66846c55ebe51489c7648c95c5a455b527040f08a2a
MD5 0cb433aac6b59f066b46791ce5d7261b
BLAKE2b-256 f98092404a18442ab50d8d67633eff71f4ec770557e7fd1ff5bb1423706ef66a

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