Utility that generates TOTP codes and stores the TOTP secrets in your system keyring.
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file TOTP_Generator-3.1.3-py2.py3-none-any.whl
.
File metadata
- Download URL: TOTP_Generator-3.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 21.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 984d79232989ea822570d1144353e1820ef4cb19e00498d5c2d55af4ba7c59b8 |
|
MD5 | e378f1e50c0418d88e405c9f24aac313 |
|
BLAKE2b-256 | 91d39729613dd277f3dd5876dff93c6771f2b43b50ae201c5d5edecfee2611ed |