{ "info": { "author": "Abdullah Selek", "author_email": "abdullahselek@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "totppy\n======\n\n.. image:: https://img.shields.io/pypi/pyversions/totppy.svg\n :target: https://pypi.org/project/totppy\n\n.. image:: https://readthedocs.org/projects/totppy/badge/?version=latest\n :target: http://totppy.readthedocs.org/en/latest/?badge=latest\n\n.. image:: https://codecov.io/gh/abdullahselek/totppy/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/abdullahselek/totppy\n\n+-------------------------------------------------------------------------+----------------------------------------------------------------------------------+\n| Linux | Windows |\n+=========================================================================+==================================================================================+\n| .. image:: https://travis-ci.org/abdullahselek/totppy.svg?branch=master | .. image:: https://ci.appveyor.com/api/projects/status/3o0k8ppg8tn0htmx?svg=true |\n| :target: https://travis-ci.org/abdullahselek/totppy | :target: https://ci.appveyor.com/project/abdullahselek/totppy |\n+-------------------------------------------------------------------------+----------------------------------------------------------------------------------+\n\nIntroduction\n============\n\nA Python library for generating TOTP and HOTP one-time passwords. It works with Python versions from 2.7+ and Python 3.\n\nInstalling\n==========\n\nYou can install totppy using::\n\n $ pip install totppy\n\nGetting the code\n================\n\nThe code is hosted at https://github.com/abdullahselek/totppy\n\nCheck out the latest development version anonymously with::\n\n $ git clone git://github.com/abdullahselek/totppy.git\n $ cd totppy\n\nTo install test dependencies, run either::\n\n $ pip install -Ur requirements.testing.txt\n\nRunning Tests\n=============\n\nThe test suite can be run against a single Python version which requires ``pip install pytest`` and optionally ``pip install pytest-cov`` (these are included if you have installed dependencies from ``requirements.testing.txt``)\n\nTo run the unit tests with a single Python version::\n\n $ py.test -v\n\nto also run code coverage::\n\n $ py.test --cov=totppy\n\nTo run the unit tests against a set of Python versions::\n\n $ tox\n\nSample Usage\n============\n\nImports::\n\n from totppy import (\n Factor,\n Generator,\n Algorithm\n )\n\nCreating time based one time password::\n\n factor = Factor(digits=6, period=15)\n generator = Generator(factor, Algorithm.SHA1, 'secret')\n password = generator.password(datetime.datetime(2018, 10, 31, 9, 20))\n\nor::\n\n from totppy import (\n Factor,\n Generator,\n Algorithm,\n Token\n )\n\n factor = Factor(6, 10)\n generator = Generator(factor, Algorithm.SHA1, 'secret')\n token = Token(generator, 'name', 'issuer')\n password = token.password()\n\nCLI\n===\n\nAvailable functions for CLI:\n\n+-----------------+--------------------------------------------------------------+\n| Command | Description |\n+-----------------+--------------------------------------------------------------+\n| --help, -h | Display help message |\n+-----------------+--------------------------------------------------------------+\n| --version, -v | Display installed version |\n+-----------------+--------------------------------------------------------------+\n| --generator, -g | Create one time password with generator, prompts for inputs. |\n+-----------------+--------------------------------------------------------------+\n| --token, -t | Create one time password with token, prompts for inputs. |\n+-----------------+--------------------------------------------------------------+\n\n\nIf you cloned repository you can call direct ``python totppy --help`` in root folder.\nOr you installed via **pip** you can use ``python -m totppy --help``.\n\nRelevant RFCs\n-------------\n\n| `RFC4226 `_\n| `RFC6238 `_\n\nLicense\n-------\n\nMIT License\n\nCopyright (c) 2018 Abdullah Selek\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/abdullahselek/totppy", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/abdullahselek/totppy", "keywords": "totp,hotp,one-time passwords,unique tokens,totp token creater", "license": "MIT License", "maintainer": "Abdullah Selek", "maintainer_email": "abdullahselek@gmail.com", "name": "totppy", "package_url": "https://pypi.org/project/totppy/", "platform": "Any", "project_url": "https://pypi.org/project/totppy/", "project_urls": { "Download": "https://github.com/abdullahselek/totppy", "Homepage": "https://github.com/abdullahselek/totppy" }, "release_url": "https://pypi.org/project/totppy/0.1.1/", "requires_dist": [ "enum34", "click" ], "requires_python": "", "summary": "A Python library for generating TOTP and HOTP one-time passwords.", "version": "0.1.1" }, "last_serial": 4500334, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "a589abd83b4adea053f17c202e7468cd", "sha256": "7bdb085b9fbe44cf3a563510a33e57523bbd9257fdb53e017dd37e96e21f69a6" }, "downloads": -1, "filename": "totppy-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a589abd83b4adea053f17c202e7468cd", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6408, "upload_time": "2018-10-31T12:14:48", "url": "https://files.pythonhosted.org/packages/80/da/44a85339df8915d61d91b711029dc1756e8c70691b5566c5429617fda40e/totppy-0.1-py2.py3-none-any.whl" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "f1dca175fba544094716593937cf8891", "sha256": "b6162ed54ddd9dc82a25a6a43cc9e393cd67f5c2f808dc2b659bdb8283c2a923" }, "downloads": -1, "filename": "totppy-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f1dca175fba544094716593937cf8891", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7588, "upload_time": "2018-11-18T17:41:56", "url": "https://files.pythonhosted.org/packages/15/8c/20d8ad9a31a926bfffea744aa5039163cc4a2e407e81d62ef5f27d168db6/totppy-0.1.1-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f1dca175fba544094716593937cf8891", "sha256": "b6162ed54ddd9dc82a25a6a43cc9e393cd67f5c2f808dc2b659bdb8283c2a923" }, "downloads": -1, "filename": "totppy-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f1dca175fba544094716593937cf8891", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7588, "upload_time": "2018-11-18T17:41:56", "url": "https://files.pythonhosted.org/packages/15/8c/20d8ad9a31a926bfffea744aa5039163cc4a2e407e81d62ef5f27d168db6/totppy-0.1.1-py2.py3-none-any.whl" } ] }