Skip to main content

TOTP-CLIP

Generate TOTP authentication code for 2FA from a configuration stored in a YAML file with secrets in the system keyring and copy it to the clipboard.

Configuration (YAML)

Defaults to ~/totp.yml.

service_name:
  remote_name: identifier used to look up the secret in the keyring
  window_title: title of the window showing the OTP
  store_clipboard: Boolean option to either store the OTP in the clipboard

Secret storage (keyring)

Secrets are stored in the OS-native keyring (e.g. Secret Service on Linux, Keychain on macOS, Credential Locker on Windows) via the keyring library, under the service name totp-clip.

Adding a new account

totp-clip-setup service_name

This interactively prompts for the remote name, window title, clipboard preference and the TOTP secret key provided during the setup of the two-factor authentication, then writes the entry to the YAML configuration and stores the secret in the keyring. It can also be used to overwrite an existing entry.

Alternatively, the configuration and the secret can be managed manually: add an entry to the YAML configuration as described above, then store the secret with the keyring command line tool (install it with pipx install keyring):

keyring set totp-clip remote_name

where remote_name matches the corresponding entry in the YAML configuration.

Installation

pipx install totp-clip

Usage

totp-clip service_name

A shortcut may be manually created to launch the command mentioned.

Download files

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

Source Distribution

totp_clip-0.10.3.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

totp_clip-0.10.3-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file totp_clip-0.10.3.tar.gz.

File metadata

  • Download URL: totp_clip-0.10.3.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for totp_clip-0.10.3.tar.gz
Algorithm Hash digest
SHA256 43aa6af5be61a0db57d0d3add2cc5ffde0e2f6259c5c9c295cff9f4828206ea9
MD5 25e6ceff273b4b5265f5428a0a931665
BLAKE2b-256 0303ffec772a14fc6c77b20c445e5820d3119da8137335d91e34932fb7230726

See more details on using hashes here.

Provenance

The following attestation bundles were made for totp_clip-0.10.3.tar.gz:

Publisher: pypi.yml on alberto743/totp-clip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file totp_clip-0.10.3-py3-none-any.whl.

File metadata

  • Download URL: totp_clip-0.10.3-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for totp_clip-0.10.3-py3-none-any.whl
Algorithm Hash digest
SHA256 734aafc77b02ba315b1b68eed375a768fe3daeddd282f732073b23b7822e9e86
MD5 0d821eb603c0603f24b4f4e2792791de
BLAKE2b-256 cef5ac08012dc80db2c863d35398956f92e0709f258a65750fd90d1042ee2fa1

See more details on using hashes here.

Provenance

The following attestation bundles were made for totp_clip-0.10.3-py3-none-any.whl:

Publisher: pypi.yml on alberto743/totp-clip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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