Metadata-Version: 2.4
Name: github_token
Version: 1.0.0
Summary: Library to create github personal auth token
Home-page: https://github.com/Mariocj89/github-token
Author: Mario Corchero
Author-email: mariocj89@gmail.com
License: MIT
Keywords: github,authorization,tfa,token,twofactor
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Requires-Dist: requests
Requires-Dist: six
Requires-Dist: enum34; python_version < "3.4"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: requires-dist
Dynamic: summary

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

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