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 grygry

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

grygry-2.8.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: grygry-2.8.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for grygry-2.8.0.tar.gz
Algorithm Hash digest
SHA256 2424ecd114af279501d5588d87c56585393638ae0b2931cd58d820f5d07278fa
MD5 336990182a564076cba6e187f139e166
BLAKE2b-256 05b892dba7048ddb08e35b2c1a22fef5074b4d74fd9d9ae44ece95568e81fc5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: grygry-2.8.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for grygry-2.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f4b5373e927a6b7be554fa5c7138a6c199302d841830ba2fdbd34f32b7f87382
MD5 574786c50b250f3b00da112c35c05c83
BLAKE2b-256 2fae3a0b82b2fb71a1b8ac72c5efd24f25601b7b4e20614cddacaec0daac8934

See more details on using hashes here.

Supported by

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