Skip to content

grep/search for pattern contained in python string constants inside a python file

License

Notifications You must be signed in to change notification settings

RhetTbull/pystrgrep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pystrgrep

grep/search for pattern in string constants contained in a python file

Searches through python files and extracts all string constants searching for pattern.

Optionally also searches through docstrings.

Installation

Use pipx:

pipx install git+https://github.com/RhetTbull/pystrgrep.git

Example

Example image

Usage

Usage: pystrgrep [OPTIONS] PATTERN FILE ...

  grep for PATTERN in python string constants inside FILE(s)

Arguments:
  PATTERN   [required]
  FILE ...  [required]

Options:
  --version
  -i, --ignore-case               Ignore case
  -n, --line-number               Show line numbers
  --install-completion [bash|zsh|fish|powershell|pwsh]
                                  Install completion for the specified shell.
  --show-completion [bash|zsh|fish|powershell|pwsh]
                                  Show completion for the specified shell, to
                                  copy it or customize the installation.
  --help                          Show this message and exit.

About

grep/search for pattern contained in python string constants inside a python file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages