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.

Source Distribution

github_token-1.0.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

github_token-1.0.0-py2.py3-none-any.whl (5.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file github_token-1.0.0.tar.gz.

File metadata

File hashes

Hashes for github_token-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7a503222ee515cd2b819f4bf357581af2c130eeb9d0ac0e9f8fa6b56e2ed1c72
MD5 5b6b053f08c20ae93dc0c4ba22ad4390
BLAKE2b-256 bd8a5ea108df03dadacd6874925685634ce405c81ca79391c239d82abf099cba

See more details on using hashes here.

File details

Details for the file github_token-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for github_token-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e028824743027dd85b645bee7e4f03a83d5e11b48f4b6988cfb9cb386d70aaf6
MD5 e2f34d860a8d205c850585a8f530d763
BLAKE2b-256 4ad9bda68968e22de1c6cef5f84011dc0512da124cb745fa4da2e28101e9c7b3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page