.. image:: https://img.shields.io/pypi/v/oathtool.svg
:target: `PyPI link`_
.. image:: https://img.shields.io/pypi/pyversions/oathtool.svg
:target: `PyPI link`_
.. _PyPI link: https://pypi.org/project/oathtool
.. image:: https://github.com/jaraco/oathtool/workflows/tests/badge.svg
:target: https://github.com/jaraco/oathtool/actions?query=workflow%3A%22tests%22
:alt: tests
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
:alt: Code style: Black
.. .. image:: https://readthedocs.org/projects/skeleton/badge/?version=latest
.. :target: https://skeleton.readthedocs.io/en/latest/?badge=latest
.. image:: https://img.shields.io/badge/skeleton-2021-informational
:target: https://blog.jaraco.com/skeleton
TOTP code generator based on oathtool.
Usage
=====
Command-line::
$ python -m oathtool $key
API::
>>> oathtool.generate_otp(key)
Create standalone script (Unix)::
$ python -m oathtool.generate-script
$ ./oathtool $key
Don't want to install oathtool, but just want the script? Use
`pip-run <https://pypi.org/project/pip-run>`_::
$ pip-run oathtool -- -m oathtool.generate-script
$ ./oathtool $key
``generate-script`` also takes an arbitrary target path in
case you wish to generate the script elsewhere::
$ python -m oathtool.generate-script ~/bin/my-oathtool
Or install with `pipx <https://pipxproject.github.io/pipx/>`_::
$ pipx install oathtool
$ oathtool $key
Raw data
{
"_id": null,
"home_page": "https://github.com/jaraco/oathtool",
"name": "oathtool",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "",
"author": "Jason R. Coombs",
"author_email": "jaraco@jaraco.com",
"download_url": "https://files.pythonhosted.org/packages/17/65/e4c33cb474786a48730a08931d25ea9a14efae0f52949c3917ee8e9aa2f7/oathtool-2.3.1.tar.gz",
"platform": "",
"description": ".. image:: https://img.shields.io/pypi/v/oathtool.svg\n :target: `PyPI link`_\n\n.. image:: https://img.shields.io/pypi/pyversions/oathtool.svg\n :target: `PyPI link`_\n\n.. _PyPI link: https://pypi.org/project/oathtool\n\n.. image:: https://github.com/jaraco/oathtool/workflows/tests/badge.svg\n :target: https://github.com/jaraco/oathtool/actions?query=workflow%3A%22tests%22\n :alt: tests\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n :target: https://github.com/psf/black\n :alt: Code style: Black\n\n.. .. image:: https://readthedocs.org/projects/skeleton/badge/?version=latest\n.. :target: https://skeleton.readthedocs.io/en/latest/?badge=latest\n\n.. image:: https://img.shields.io/badge/skeleton-2021-informational\n :target: https://blog.jaraco.com/skeleton\n\nTOTP code generator based on oathtool.\n\nUsage\n=====\n\nCommand-line::\n\n $ python -m oathtool $key\n\nAPI::\n\n >>> oathtool.generate_otp(key)\n\nCreate standalone script (Unix)::\n\n $ python -m oathtool.generate-script\n $ ./oathtool $key\n\nDon't want to install oathtool, but just want the script? Use\n`pip-run <https://pypi.org/project/pip-run>`_::\n\n $ pip-run oathtool -- -m oathtool.generate-script\n $ ./oathtool $key\n\n\n``generate-script`` also takes an arbitrary target path in\ncase you wish to generate the script elsewhere::\n\n $ python -m oathtool.generate-script ~/bin/my-oathtool\n\nOr install with `pipx <https://pipxproject.github.io/pipx/>`_::\n\n $ pipx install oathtool\n $ oathtool $key\n\n\n",
"bugtrack_url": null,
"license": "",
"summary": "One-time password generator",
"version": "2.3.1",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "f4ab0b340736419282b5d6d905ea53ce",
"sha256": "11acec8b2b5655d5220524bbe44f5c9d63918178239cda6892c5571fcbd0f859"
},
"downloads": -1,
"filename": "oathtool-2.3.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f4ab0b340736419282b5d6d905ea53ce",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 6571,
"upload_time": "2021-10-08T02:00:57",
"upload_time_iso_8601": "2021-10-08T02:00:57.405308Z",
"url": "https://files.pythonhosted.org/packages/c4/33/852279506bf4d2f036e8cb3dd5c73ff9eee8d3fedb4a00104f5760f4957e/oathtool-2.3.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "b8da1468390dd5e08061dd3f8512a5da",
"sha256": "0df3f6d9bf7f712873fdf1444f33cd58a6bd5b687ed04a256abd78393acf2c25"
},
"downloads": -1,
"filename": "oathtool-2.3.1.tar.gz",
"has_sig": false,
"md5_digest": "b8da1468390dd5e08061dd3f8512a5da",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 7503,
"upload_time": "2021-10-08T02:00:58",
"upload_time_iso_8601": "2021-10-08T02:00:58.638136Z",
"url": "https://files.pythonhosted.org/packages/17/65/e4c33cb474786a48730a08931d25ea9a14efae0f52949c3917ee8e9aa2f7/oathtool-2.3.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2021-10-08 02:00:58",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "jaraco",
"github_project": "oathtool",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"tox": true,
"lcname": "oathtool"
}