Skip to main content

Command line utility to grep different types of source code.

Project description

grygry

grygry is a set of command line utilities to grep different types of source code.

Description

This script is for my own use, but if you are interested:

  • The provided list of scripts find lines of source code in the current directory that match the argument string.
  • Options are hardcoded in a parameters file (see grygry/lib/parameters.json).
  • A list of script dynamically generated from the parameters file are available: gryall, grycfg, grycss, gryhtml, gryhtmlall, gryjs, gryjson, grymd, grynopy, grypy, grypy0, grypy2, gryrb, grysh, grytoml, grytxt, gryyml.
  • Just look in the parameters file to understand the various options (and adapt to your needs.)

This project is licensed under the MIT License.

Project: https://github.com/jdum/grygry

Author: jerome.dumonteil@gmail.com

Example

% grypy self.found
/Users/jd/dev/gits/grygry/grygry/lib/grylib.py
   20:         self.path = Path()
   21:         self.found = {}
   22:

   74:         self.find_word(path)
   75:         if not self.found:
   76:             return

...

Installation

Installation from Pypi (recommended):

pip install grypy

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

grygry-2.5.0.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

grygry-2.5.0-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

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