Skip to main content

Utility that generates TOTP codes and stores the TOTP secrets in your system keyring.

Project description

Python Tests codecov

TOTP Generator

Simple Python TOTP code generator that stores TOTP secrets in your keyring. Install with pip install totp-generator

As of version 3 this requires python 3.7+. Version 2.x is tested to run on python 2.7 - 3.8, however this major version will not receive any updates.

Supported keyrings can be found here. You can also specify the keyring settings in a config file. Run totp_generator with the -d flag for the config root path and the current keyring service.

setproctitle is an optional dependency due permission and dependency requirements on some systems. Install with pip install totp-generator[proctitle] to install this dependancy and enable setting the process name. This feature is useful for some uses with some keyrings such as the OSX Keychain.

The clipboard function under linux does require xclip with x11 or wl-clipboard with wayland. See https://github.com/spyoungtech/pyclip/tree/main/docs#platform-specific-notesissues

Run totp_generator with the --help flag for more information.

Development

This project uses semantic versioning (major.minor.patch).

Install the test requirements with pip install ".[test]" . Run the tests with pytest (see https://github.com/jjfalling/TOTP-Generator/blob/master/.github/workflows/python-tests.yml for command).

To create a new build:

  • Bump the version in totp_generator/__init__.py
  • Run python setup.py upload
  • Add a new Github release with the git tag that setup.py created (same as the new version number).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

TOTP_Generator-3.1.3-py2.py3-none-any.whl (21.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file TOTP_Generator-3.1.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for TOTP_Generator-3.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 984d79232989ea822570d1144353e1820ef4cb19e00498d5c2d55af4ba7c59b8
MD5 e378f1e50c0418d88e405c9f24aac313
BLAKE2b-256 91d39729613dd277f3dd5876dff93c6771f2b43b50ae201c5d5edecfee2611ed

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page