Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mariocj89/github-token
Creates a token for an app in github
https://github.com/mariocj89/github-token
github github-api library python token two-factor-authentication
Last synced: 10 days ago
JSON representation
Creates a token for an app in github
- Host: GitHub
- URL: https://github.com/mariocj89/github-token
- Owner: mariocj89
- License: mit
- Created: 2016-12-14T20:50:28.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-03T23:23:39.000Z (about 5 years ago)
- Last Synced: 2024-12-16T23:43:31.616Z (12 days ago)
- Topics: github, github-api, library, python, token, two-factor-authentication
- Language: Python
- Homepage: https://pypi.python.org/pypi/github_token/
- Size: 11.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
|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.pyRelease
-------::
rm -rf dist/*
python3 -m pip install twine
python3 setup.py sdist bdist_wheel
twine upload dist/*.. |PyPI Version| image:: https://img.shields.io/pypi/v/github_token.svg
:target: https://pypi.python.org/pypi/github_token/
.. |Code Health| image:: https://landscape.io/github/mariocj89/github-token/master/landscape.svg?style=flat
:target: https://landscape.io/github/mariocj89/github-token/master
.. |Coverage| image:: https://coveralls.io/repos/github/mariocj89/github-token/badge.svg?branch=master
:target: https://coveralls.io/github/mariocj89/github-token?branch=master
.. |Travis| image:: https://travis-ci.org/mariocj89/github-token.svg?branch=master
:target: https://travis-ci.org/mariocj89/github-token