Skip to main content

List all your Github repositories containing a filename matching a search pattern.

ghgrep is partially grep -l and partially find -name - you can pretend it is a special version of grep(1) in which files are actually repositories and each line of a file is actually a filename inside the repository.

Examples

Show all repositories with a readme:

ghgrep 'README.*'

List all repositories that have a file named ‘COPYING’:

ghgrep -f COPYING

List all repositories that don’t have a license file:

ghgrep -v (COPYING|LICENSE)

Installation

[$]> pip install ghgrep

or

[$]> easy_install ghgrep

Hacking

I highly recommend using virtualenv:

[$]> virtualenv --no-site-packages --distribute env
[$]> source env/bin/activate
[$]> pip install -r requirements.txt
[$]> pip install -e . # So we can import the version from inside bin/ .

Metadata

Release files for ghgrep 1.0.1

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

Source distribution (sdist)

Source distribution for ghgrep 1.0.1
File Size Uploaded Provenance
ghgrep-1.0.1.tar.gz 2.4 kB Without provenance Details

Release files / ghgrep-1.0.1.tar.gz

Download URL ghgrep-1.0.1.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0f9bcda388b3454fdb60dc748b6b24b3f715911641cc1d8b7d685ded24c406ad
BLAKE2b-256 checksum
How to use checksums
7abe0f6cc0e8df87eb5734066f352e1bede5cbf79ff96684578a6f25551ffca4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for ghgrep 1.0.1

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