Skip to main content

Simple GitHub API with Python

Project description

PyGitHub

Simple GitHub API with Python

Instructions

from iamjjinta.github import GitHub


username = 'Your GitHub Username'
password = 'Your GitHub Password'

# GitHub Login
github = GitHub(username, password)
login = github.login()
print(login.status_code)

# Get Repository Content
owner = 'iamjjintta-python'
repo = 'PyGitHub'
branch = 'main'
path = '/git/github.py'

source_code = github.get_content(owner, repo, branch, path)
print(source_code)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iamjjintta-pygithub-0.0.1.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iamjjintta_pygithub-0.0.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file iamjjintta-pygithub-0.0.1.tar.gz.

File metadata

  • Download URL: iamjjintta-pygithub-0.0.1.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for iamjjintta-pygithub-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d61e0fe471d295748cdc77b29e7ff9e8f64417ce6498663e10eff9e8c8eedbda
MD5 6201c0541a8ee3a1fa09355bd7db28d6
BLAKE2b-256 a38c321254c4672fcce03552f3f65cb6a37ca9e2c9f9589f1c52d188cbed2d30

See more details on using hashes here.

File details

Details for the file iamjjintta_pygithub-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for iamjjintta_pygithub-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82c12010f5169b5673af3854e8db8aa03b1d294fcf43daf6431f743915722c45
MD5 a59bcd9118a3e2d18b0db40b04aafdd0
BLAKE2b-256 3d491d1b059718039190adeeb21f2a1559cc359a212d93758302e24b0a093321

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page