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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43aa6af5be61a0db57d0d3add2cc5ffde0e2f6259c5c9c295cff9f4828206ea9
|
|
| MD5 |
25e6ceff273b4b5265f5428a0a931665
|
|
| BLAKE2b-256 |
0303ffec772a14fc6c77b20c445e5820d3119da8137335d91e34932fb7230726
|
Provenance
The following attestation bundles were made for totp_clip-0.10.3.tar.gz:
Publisher:
pypi.yml on alberto743/totp-clip
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
totp_clip-0.10.3.tar.gz -
Subject digest:
43aa6af5be61a0db57d0d3add2cc5ffde0e2f6259c5c9c295cff9f4828206ea9 - Sigstore transparency entry: 2174695461
- Sigstore integration time:
-
Permalink:
alberto743/totp-clip@9c68b1450bb225d0fdbc850125fcafe325bd8537 -
Branch / Tag:
refs/tags/v0.10.3 - Owner: https://github.com/alberto743
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@9c68b1450bb225d0fdbc850125fcafe325bd8537 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
734aafc77b02ba315b1b68eed375a768fe3daeddd282f732073b23b7822e9e86
|
|
| MD5 |
0d821eb603c0603f24b4f4e2792791de
|
|
| BLAKE2b-256 |
cef5ac08012dc80db2c863d35398956f92e0709f258a65750fd90d1042ee2fa1
|
Provenance
The following attestation bundles were made for totp_clip-0.10.3-py3-none-any.whl:
Publisher:
pypi.yml on alberto743/totp-clip
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
totp_clip-0.10.3-py3-none-any.whl -
Subject digest:
734aafc77b02ba315b1b68eed375a768fe3daeddd282f732073b23b7822e9e86 - Sigstore transparency entry: 2174695968
- Sigstore integration time:
-
Permalink:
alberto743/totp-clip@9c68b1450bb225d0fdbc850125fcafe325bd8537 -
Branch / Tag:
refs/tags/v0.10.3 - Owner: https://github.com/alberto743
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@9c68b1450bb225d0fdbc850125fcafe325bd8537 -
Trigger Event:
push
-
Statement type: