New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gitpub

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitpub

a module to interact with Github's API

  • 1.0
  • PyPI
  • Socket score

Maintainers
1

Github library to interact with it's public API

Requirements:
------------------

  • pytest: Uses pytest as the unit-testing framework. Install using pip install pytest.
  • requests: Uses requests for interacting with the various api urls.

How to use:
--------------

  • Load Github Profile & Public Repo details of a user: Loading a github profile just needs a username to startwith. Here is a small demo with username demfier.

Type the following commands in python shell:

import gitpub

username = 'demfier'
profile = gitpub.Profile()
profile.load_gh_profile(username)  # loads profile details of `username`
profile.get_public_repos()  # loads all the public repo details of `username`
  • Run Tests: Just run the commandpy.test -v to see the test results.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc