Skip to content

Latest commit

 

History

History
62 lines (45 loc) · 1.61 KB

README.rst

File metadata and controls

62 lines (45 loc) · 1.61 KB

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: ")
))

Develop

When working locally in the project

Test

python3 -m venv venv3
. venv3/bin/activate
python3 -m pip install -r dev-requirements.txt
python3 -m pytest tests.py

Release

rm -rf dist/*
python3 -m pip install twine
python3 setup.py sdist bdist_wheel
twine upload dist/*