Skip to main content

The package searches repositories on GitHub using GraphQL API. One may specify parameters such as programming language, start date, and number of stars to get a list of GitHub repositories modified on or after the specified start date and satisfying other filters.

The package takes care of constraints such as API limit and the size of responses by reducing the search scope (in terms of time) by following a mechanism similar to binary search. The search results are stored in a file in the following format per line.

<repo_owner>/<project name><space><programming language><space><modification date and time>

Ex: apache/tomcat Java 2022-08-06T13:31:25Z

Parameters

  • --api-token: GitHub API token or Personal Access Token
  • --out-file: Output file path
  • --start-date: Start date for search in dd-mm-yyyy
  • --lang: Primary programming language of the repositories
  • --min-stars: Minimum star count
  • --verbose: Verbose mode

Example

Install searchgithubrepo package using pip and use it in your program.

from searchrepo import search_repo

one_day_old_date = (datetime.datetime.now().date() - datetime.timedelta(days=1))
search_repo(start_date=one_day_old_date,
            out_file='repos.csv',
            api_token='51ec41929c6f48c23482a734534327d308', # fake; just for the example
            stars=100,
            lang='Java', 
            verbose=True)

Metadata

Release files for searchgithubrepo 1.0.10

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

Source distribution (sdist)

Source distribution for searchgithubrepo 1.0.10
File Size Uploaded Provenance
searchgithubrepo-1.0.10.tar.gz 8.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for searchgithubrepo 1.0.10
File Interpreter ABI Platform
searchgithubrepo-1.0.10-py3-none-any.whl Python 3 none any Details

Total release size: 17.0 kB

Release files / searchgithubrepo-1.0.10.tar.gz

Download URL searchgithubrepo-1.0.10.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
74303aa1906fafc422f0db030216a0f2e7e07105b47f7af97376baff47ddedff
BLAKE2b-256 checksum
How to use checksums
2edbf20380dea00a199d902e62975086116bca1a548b1d93fd8bf5e8d37c424f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.2

Release files / searchgithubrepo-1.0.10-py3-none-any.whl

Download URL searchgithubrepo-1.0.10-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
10ee050e02fda270f26a459bf7023cb78c486cf0ebc1024c37662aacf3711f65
BLAKE2b-256 checksum
How to use checksums
2410e87ffa761a6ca6017d7b9fe8b04c02026c860b4999ae5144f546ea47e751
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.2

Security for searchgithubrepo 1.0.10

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