{"id":16856362,"url":"https://github.com/mariocj89/github-token","last_synced_at":"2025-04-05T10:43:39.569Z","repository":{"id":57434614,"uuid":"76496074","full_name":"mariocj89/github-token","owner":"mariocj89","description":"Creates a token for an app in github","archived":false,"fork":false,"pushed_at":"2019-11-03T23:23:39.000Z","size":12,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T00:47:57.060Z","etag":null,"topics":["github","github-api","library","python","token","two-factor-authentication"],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/github_token/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mariocj89.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-14T20:50:28.000Z","updated_at":"2024-04-06T02:29:33.000Z","dependencies_parsed_at":"2022-09-04T15:23:24.191Z","dependency_job_id":null,"html_url":"https://github.com/mariocj89/github-token","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariocj89%2Fgithub-token","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariocj89%2Fgithub-token/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariocj89%2Fgithub-token/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariocj89%2Fgithub-token/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mariocj89","download_url":"https://codeload.github.com/mariocj89/github-token/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247325648,"owners_count":20920713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github","github-api","library","python","token","two-factor-authentication"],"created_at":"2024-10-13T14:03:54.765Z","updated_at":"2025-04-05T10:43:39.544Z","avatar_url":"https://github.com/mariocj89.png","language":"Python","readme":"|Travis| |Coverage| |Code Health| |PyPI Version|\n\nGitHub Token\n============\n\nCreating an app token might not be the simplest task, use this utility\nand forget about all the issues.\n\nInstall\n=======\n\n``pip install github_token``\n\nUsage\n=====\n\n::\n\n        import github_token\n        user = input(\"Username: \")\n        password = getpass.getpass()\n        app_name = input(\"App Name to create: \")\n        token_factory = github_token.TokenFactory(user, password, app_name,\n                                                  github_token.Scopes.all)\n\n        print(token_factory(\n            tfa_token_callback=lambda: input(\"TFA Token: \")\n        ))\n\nDevelop\n=======\n\nWhen working locally in the project\n\nTest\n----\n\n::\n\n        python3 -m venv venv3\n        . venv3/bin/activate\n        python3 -m pip install -r dev-requirements.txt\n        python3 -m pytest tests.py\n\nRelease\n-------\n\n::\n\n        rm -rf dist/*\n        python3 -m pip install twine\n        python3 setup.py sdist bdist_wheel\n        twine upload dist/*\n\n.. |PyPI Version| image:: https://img.shields.io/pypi/v/github_token.svg\n   :target: https://pypi.python.org/pypi/github_token/\n.. |Code Health| image:: https://landscape.io/github/mariocj89/github-token/master/landscape.svg?style=flat\n   :target: https://landscape.io/github/mariocj89/github-token/master\n.. |Coverage| image:: https://coveralls.io/repos/github/mariocj89/github-token/badge.svg?branch=master\n   :target: https://coveralls.io/github/mariocj89/github-token?branch=master\n.. |Travis| image:: https://travis-ci.org/mariocj89/github-token.svg?branch=master\n   :target: https://travis-ci.org/mariocj89/github-token\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariocj89%2Fgithub-token","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmariocj89%2Fgithub-token","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariocj89%2Fgithub-token/lists"}