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
Release history Release notifications | RSS feed
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)
File details
Details for the file github_token-0.1.0.tar.gz
.
File metadata
- Download URL: github_token-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7880b1553565f299249737e58301e895eedb731682f7326567e8e3adcc4700ce |
|
MD5 | 468eb4aa030b11f806119a29cf529bb6 |
|
BLAKE2b-256 | bc7ae41bc4ed46c33a7fe37cc840b6d6fb4bc3bec5325ad4dd5de18eafe71769 |