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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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