Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

The simple library that calls user's registered functions whenever github events happen. (ex, notification)

Project description

https://img.shields.io/pypi/v/github_listener.svg https://img.shields.io/pypi/dm/github_listener.svg

The simple library that calls user’s registered functions whenever github events happen.

How to install

You can install Github Listener using pip :

$ pip install github_listener

Feature Support

  • Notification
  • …If you have things you want, please tell me through issues.

Example

from github_listener import (
  GithubAccount,
  GithubListener,
)

account = GithubAccount("username", "password")
listener = GithubListener(account)

@listener.notification
def on_notification(change):
  # Do things that you want to do whenever the github's notification occurs.
  pass

listener.run()  # infinite loop
from github_listener import GithubAccount
from github_listener.github_api import NotificationAPI

account = GithubAccount("username", "password")
api = NotificationAPI(account)
groups = api.get_notification_groups()

# Do something using notification informations.

For more detail examples, Go Examples.

Contribution

Welcome any kind of contribution!

Project details


Download files

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

Files for github_listener, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size github_listener-0.1.3.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page