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://codeberg.org/jjfalling/TOTP-Generator/src/branch/master/.github/workflows/python-tests.yml for command).

To create a new build:

  • Bump the version in pyproject.toml
  • Run python3 -m pip install --upgrade build twine; python -m build
  • Run python3 -m twine upload dist/*
  • 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 Distribution

totp_generator-3.1.4.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

totp_generator-3.1.4-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file totp_generator-3.1.4.tar.gz.

File metadata

  • Download URL: totp_generator-3.1.4.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for totp_generator-3.1.4.tar.gz
Algorithm Hash digest
SHA256 33c7f97db74954063c34e036a18658204e9319d4e33270fdc2302b97f1053aed
MD5 50da058e715bbf04e5bf45ee162844b6
BLAKE2b-256 ead03b0688865b019e86d4d79c00c5a964dd637cf3f3634cdcc19f8be7341a9c

See more details on using hashes here.

File details

Details for the file totp_generator-3.1.4-py3-none-any.whl.

File metadata

  • Download URL: totp_generator-3.1.4-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for totp_generator-3.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1a866cc9fe0fcf2c8acd591731bdf1333503da881bf4e8bfb5cd40d744650067
MD5 79a40ae9b8ee01df3bf969ab95b8aef6
BLAKE2b-256 9042e35c68281b92bfcab646cc0368bf413eee3926ae63f45f603a182d5b467f

See more details on using hashes here.

Supported by

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