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

Uploaded Source

Built Distribution

grygry-2.6.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file grygry-2.6.0.tar.gz.

File metadata

  • Download URL: grygry-2.6.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.19

File hashes

Hashes for grygry-2.6.0.tar.gz
Algorithm Hash digest
SHA256 34e675c45dd5cc4130265e16ebaf472b7224f03e9514fd1d163fea7450bc62a5
MD5 4cf3ad4571f7323eb5138463039cf006
BLAKE2b-256 37023b29de1ce6b1dd93b8963bc3b667d3309fae6d5c4e5a4a7514f88f918429

See more details on using hashes here.

File details

Details for the file grygry-2.6.0-py3-none-any.whl.

File metadata

  • Download URL: grygry-2.6.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.19

File hashes

Hashes for grygry-2.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b0c8afaff6d9dbed0ed5d8e86aeec0311b55099484d9ed6a9ff6f29ce00025f
MD5 a04a2ad9fbd0d4cd40efedd0153bf9e3
BLAKE2b-256 3a8a31cbb2d929a486f6a48021cfd443d302d81c2791c7db9eb8d96cc4488af0

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