Skip to main content

Python wrapper to easily communicate with the GitHub API

Project description

Python package to easily use the GitHub API.

Installation

Install using pip3 install githubAPy

Usage

  • Import the class from githubAPy import gapy
  • Create an object and pass the GitHub Access Token a = gapy('<access_token_here>')

Multiple actions are supported

  • a.me return your information in dict (JSON) format.
  • a.user('<username>') return the information of a user.
  • a.create_fork('<owner>', '<repository>') create a fork of the specified repository and returns url of the forked repository if fork successfully created else raises an error.
  • a.update_with_upstream('<owner>', '<repository>') updates your forked repository master with the upstream master. Returns True if updated successfully else raises an error.

More feature to be added in later versions.

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

githubAPy-0.4.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

githubAPy-0.4-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file githubAPy-0.4.tar.gz.

File metadata

  • Download URL: githubAPy-0.4.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5

File hashes

Hashes for githubAPy-0.4.tar.gz
Algorithm Hash digest
SHA256 918a03eb8cc094fd3f7f57b001b8a1019df733ad38baf39b79a7dc6b51064999
MD5 1e53c3b70e7f627fa36257c89f475bdd
BLAKE2b-256 b10ad761fdd59abe2e578d5023fb5e92a5d767186f9d6c040db60cf5628e1d56

See more details on using hashes here.

File details

Details for the file githubAPy-0.4-py3-none-any.whl.

File metadata

  • Download URL: githubAPy-0.4-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5

File hashes

Hashes for githubAPy-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0a2e47c8ed5f0014606d30d080db35df52a09a255c8237fafc274ad219348529
MD5 e67fd80813e423ac88fb504894a72638
BLAKE2b-256 bebb7eab7cd072cd09c41209dd80c247fb49fb4909cd959eb060e26d4d6404d1

See more details on using hashes here.

Supported by

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