Skip to main content

tufa

A command-line tool for managing TOTP/HOTP credentials using the Mac OS keychain.

Installation

To install the latest released version from PyPI:

pip install -U tufa

You can also check out the repository and install from source:

pip install -U .

Usage

Use the add command to add a new credential. The secret can be passed into stdin or provided interactively via a terminal prompt.

tufa add --name example --totp

You can use the addurl command to add a credential from a URL. This example uses ZBar to extract a URL from a QR code and store the information using tufa:

zbarimg qr.png | tufa addurl --name example

The getotp command generates a one-time password for a credential:

tufa getotp --name example

To export a credential you can use the geturl command. This example generates a QR code for a credential using libqrencode.

tufa geturl --name example | qrencode -o qr.png

For full command-line documentation, see tufa --help.

Configuration

You can set the following environment variables to configure tufa:

  • TUFA_DB_PATH: Path tufa's credential metadata database. The default location is ~/.tufa.sqlite3
  • TUFA_DEFAULT_KEYCHAIN: Keychain to use when adding credentials, if not specified via command-line flags.

Metadata

Release files for tufa 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tufa 0.2.0
File Size Uploaded
tufa-0.2.0.tar.gz 11.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tufa 0.2.0
File Interpreter ABI Platform
tufa-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.8 kB

Release files / tufa-0.2.0.tar.gz

Download URL tufa-0.2.0.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ec13c73c153b362c6e32c17336a11d79989bea2cad3c82e557433a1ab39a6570
BLAKE2b-256 checksum
How to use checksums
c7c7776a8a5635ca6b2bf02126d7d5faaeef34f058bcd7a9b0c8ccea53f821f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

Release files / tufa-0.2.0-py3-none-any.whl

Download URL tufa-0.2.0-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
34ace4704818bb097f2e356737b9bcd4df7b24cce5a1fe40ecd748fbe61f1faa
BLAKE2b-256 checksum
How to use checksums
46e8a7a140ef0ccb785c2c8a5bba1f3ce3d43b6c506e51b30c746aa8cb7b4560
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page