Skip to main content

Library to create github personal auth token

Project description

Travis Coverage Code Health PyPI Version

GitHub Token

Creating an app token might not be the simplest task, use this utility and forget about all the issues.

Install

pip install github_token

Usage

import github_token
user = input("Username: ")
password = getpass.getpass()
app_name = input("App Name to create: ")
token_factory = github_token.TokenFactory(user, password, app_name,
                                          github_token.Scopes.all)

print(token_factory(
    tfa_token_callback=lambda: input("TFA Token: ")
))

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_token, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size github_token-1.0.0-py2.py3-none-any.whl (5.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size github_token-1.0.0.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page