Skip to content

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

License

Notifications You must be signed in to change notification settings

taeguk/github_listener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Listener

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!

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages