Skip to main content

Library to create github personal auth token

Project description

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.ALL_SCOPES)

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-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for github_token-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7880b1553565f299249737e58301e895eedb731682f7326567e8e3adcc4700ce
MD5 468eb4aa030b11f806119a29cf529bb6
BLAKE2b-256 bc7ae41bc4ed46c33a7fe37cc840b6d6fb4bc3bec5325ad4dd5de18eafe71769

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