Skip to main content

Tool for searching in python source code files that supports context output.

Context searching is available with ast moldule and CensoredUsername’s fork of codegen by Armin Ronacher.

Requirements:

  • Python 3.x

Installation:

pip install pygreppy

Usage:

pygreppy [-c <depth> | -cl | -f] (optional) pattern file

file should be python script (better if formatted with pep8 guidelines)

optional arguments:
-h          show this page
-c [depth]  show context of the string.
-cl         show class containing string (ignored if no class)
-f          show function containing string (ignored if no function)

-re         pattern is a regular expression

Note: only one option can be specified at a time.

Metadata

Release files for pygreppy 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygreppy 1.0.0
File Size Uploaded Provenance Actions
pygreppy-1.0.0.tar.gz 13.0 kB Without provenance Details for pygreppy-1.0.0.tar.gz

Release files / pygreppy-1.0.0.tar.gz

Download URL pygreppy-1.0.0.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4f3e10c391be712f4f5ffaedc988b1453ef59acebb5b58a2226575c9e76cc415
BLAKE2b-256 checksum
How to use checksums
cc6a71167c028308f75971db6cd79b4df7ac6385aa48aeab5a6aa6ee8141caba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pygreppy 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page