Skip to main content

python3 module to call github apis in command line or inside a module.

Project description

pygithubapi

python3 module to call github apis in command line or inside a module and export result into mysql and later Grafana.

The source for this project is available here.


It's a python module that you can include in your python module or can be used in command line.

python3 pygithubapi.py --help
usage: pygithubapi.py [-h] [-V] [-U USER] [-t TOKEN] [-u URL] [-a API] [-m METHOD]
                    [-J JSONFILE]

pygithubapi is a python3 program that call github apis in command line or imported as
a module

optional arguments:
-h, --help            show this help message and exit
-V, --version         Display the version of pygithubapi
-U USER, --user USER  github user
-t TOKEN, --token TOKEN
                        github token
-u URL, --url URL     github url
-a API, --api API     github api should start by a slash
-m METHOD, --method METHOD
                        should contain one of the method to use : ['DELETE', 'GET',
                        'POST', 'PUT']
-J JSONFILE, --jsonfile JSONFILE
                        json file needed for POST method

release notes

1.0.0 initial version

1.0.1 fixing issue with wrong json dependency

1.0.2 fixing issue with UnboundLocalError: local variable 'response' referenced before assignment

1.0.3 fixing issue with response.json()

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

pygithubapi-1.0.3.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

pygithubapi-1.0.3-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file pygithubapi-1.0.3.tar.gz.

File metadata

  • Download URL: pygithubapi-1.0.3.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.57.0 CPython/3.8.10

File hashes

Hashes for pygithubapi-1.0.3.tar.gz
Algorithm Hash digest
SHA256 e00b0b9bdeb4575c75ebae10038868be6cb290b345a63f43abf8edbf9ecc3e2d
MD5 b984745d7fd7f6dfb2ac6bbe62941d46
BLAKE2b-256 95efa4b1c18802bf3d82021686c137ec1e846fead7f06c93e8694447c85408de

See more details on using hashes here.

File details

Details for the file pygithubapi-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: pygithubapi-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.57.0 CPython/3.8.10

File hashes

Hashes for pygithubapi-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2905154b748707fab327477d7c8e99b9070dff7bdf38e7441b1063c2b6fa2260
MD5 aa201bc99c1bcfe462abd39010514187
BLAKE2b-256 447315bdf3d25819b11f2d9eb3cf75364153aa7d2f0634a7f2b775da1740f491

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