Git Sniffer is a user-friendly python package designed to simplify GitHub data collection and streamline the process of retrieving critical repository insights, using the powerful GraphQL API. It supports fetching repositories, stars, forks, contributors, commits, and more to explore GitHub activity of selected repositories and analyze with ease. Git Sniffer ensures precise and flexible querying, making it ideal for developers, researchers, and data analysts looking to gain insights into open-source projects and workflows.
You can install Git Sniffer directly from PyPI using pip:
pip install git-sniffer
To use Git Sniffer, you'll need a personal access token from GitHub.
Follow these steps to create one:
from git_sniffer import GitHubRepoFetcher
# Initialize with your GitHub token
fetcher = GitHubRepoFetcher(token="your_personal_access_token")
# Fetch repositories based on search terms
repositories = fetcher.fetch_repos(search_terms=["machine learning", "neuro-symbolic AI"], max_repos=5)
print(f"Fetched {len(repositories)} repositories!")
# Fetch stargazers (users who starred the repositories)
fetcher.fetch_stargazers()
# Fetch forks of the repositories
fetcher.fetch_forks()
# Fetch subscribers (watchers) of the repositories
fetcher.fetch_subscribers()
# Fetch contributors to the repositories
fetcher.fetch_contributors()
# Fetch commit histories of the repositories
fetcher.fetch_commits()
# Fetch release information
fetcher.fetch_releases()
# Fetch issues in the repositories
fetcher.fetch_issues()
# Fetch pull requests
fetcher.fetch_pulls()
Comprehensive documentation is available here (replace with actual link). It includes detailed instructions, API references, and advanced use cases.
We welcome contributions to improve Git Sniffer! If you'd like to contribute:
This project is licensed under the MIT License. See the LICENSE file for details.
If you encounter any issues or have questions, feel free to open an issue on GitHub or contact us directly.
Git Sniffer is a user-friendly python package designed to simplify GitHub data collection and streamline the process of retrieving critical repository insights, using the powerful GraphQL API. It supports fetching repositories, stars, forks, contributors, commits, and more to explore GitHub activity of selected repositories and analyze with ease. Git Sniffer ensures precise and flexible querying, making it ideal for developers, researchers, and data analysts looking to gain insights into open-source projects and workflows.
You can install Git Sniffer directly from PyPI using pip:
pip install git-sniffer
To use Git Sniffer, you'll need a personal access token from GitHub.
Follow these steps to create one:
from git_sniffer import GitHubRepoFetcher
# Initialize with your GitHub token
fetcher = GitHubRepoFetcher(token="your_personal_access_token")
# Fetch repositories based on search terms
repositories = fetcher.fetch_repos(search_terms=["machine learning", "neuro-symbolic AI"], max_repos=5)
print(f"Fetched {len(repositories)} repositories!")
# Fetch stargazers (users who starred the repositories)
fetcher.fetch_stargazers()
# Fetch forks of the repositories
fetcher.fetch_forks()
# Fetch subscribers (watchers) of the repositories
fetcher.fetch_subscribers()
# Fetch contributors to the repositories
fetcher.fetch_contributors()
# Fetch commit histories of the repositories
fetcher.fetch_commits()
# Fetch release information
fetcher.fetch_releases()
# Fetch issues in the repositories
fetcher.fetch_issues()
# Fetch pull requests
fetcher.fetch_pulls()
Comprehensive documentation is available here (replace with actual link). It includes detailed instructions, API references, and advanced use cases.
We welcome contributions to improve Git Sniffer! If you'd like to contribute:
This project is licensed under the MIT License. See the LICENSE file for details.
If you encounter any issues or have questions, feel free to open an issue on GitHub or contact us directly.