Skip to content

r74tech/githubapps.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

githubapps.py

A Python wrapper for the Github Apps API

installing

Install and update using pip:

pip install githubapps.py

A simple example.

import githubapps
def main():
    with open('env/private.key', 'rb') as f_private:
        private_key = f_private.read()
    with open('env/app_id.key', 'r') as f_app_id:
        app_id = f_app_id.read()
    with open('env/installation_id.key', 'r') as f_installation_id:
        installation_id = f_installation_id.read()
    client_secret = private_key
    auth = githubapps.Auth(app_id, installation_id, client_secret)
    access_token = auth.get_access_token()
    print(access_token)

About

unofficial API Wrapper for Github Apps

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages