Skip to main content

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

Metadata

Release files for github_token 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for github_token 1.0.0
File Size Uploaded
github_token-1.0.0.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for github_token 1.0.0
File Interpreter ABI Platform
github_token-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 9.2 kB

Release files / github_token-1.0.0.tar.gz

Download URL github_token-1.0.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7a503222ee515cd2b819f4bf357581af2c130eeb9d0ac0e9f8fa6b56e2ed1c72
BLAKE2b-256 checksum
How to use checksums
bd8a5ea108df03dadacd6874925685634ce405c81ca79391c239d82abf099cba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / github_token-1.0.0-py2.py3-none-any.whl

Download URL github_token-1.0.0-py2.py3-none-any.whl
Size 5.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e028824743027dd85b645bee7e4f03a83d5e11b48f4b6988cfb9cb386d70aaf6
BLAKE2b-256 checksum
How to use checksums
4ad9bda68968e22de1c6cef5f84011dc0512da124cb745fa4da2e28101e9c7b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page