simple-totp
A simple TOTP CLI
Tired of fumbling around with Google Authenticator just to generate a simple
TOTP token? Well,
simple-totp is the simplest TOTP CLI you will ever need. Just set it up once,
and you are ready to go. simple-totp offers nothing fancy beyond printing out
TOTP tokens on the terminal.
Demonstration
Installation
It should be quite easy to install simple-totp, provided you have python >= 3.
pip install simple-totp
Usage
Running simple-totp cannot be simpler.
otp
Configuration
simple-totp reads from the configuration file in ~/.otp.yml to
generate TOTP tokens. All secrets are stored there as plain text, so
just be mindful about it.
Here is the minimal configuration needed to verify that simple-totp
is working properly:
totp:
- secret: 7TO66UM5PZ2M5CB2GWZMYZX5YAVWATQX
To generate multiple TOTP tokens with proper namespacing:
totp:
- issuer: google
name: test@example.com
secret: 7TO66UM5PZ2M5CB2GWZMYZX5YAVWATQX
- issuer: facebook
name: test@example.com
secret: HXDMVJECJJWSRB3HWIZR4IFUGFTMXBOZ
By default, otp generates 6-digit TOTP tokens where the refresh
interval is every 30 seconds. If you need to override this
behavior, you may try the following:
totp:
- issuer: google
name: test@example.com
secret: 7TO66UM5PZ2M5CB2GWZMYZX5YAVWATQX
digits: 10
interval: 60
Development
Before developing, make sure just is
installed. This project uses just as the command runner instead of the
usual make.
Start a virtualenv if needed. It is highly recommended for development.
Install the dependencies for the project:
just setup
After that, install simple-totp in editable mode:
just install
Now, you can start developing. You can run the CLI directly:
otp
Distribution can be done with:
just publish
Metadata
Release files for simple-totp 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| simple-totp-1.1.0.tar.gz | 4.2 kB | Without provenance | Details for simple-totp-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simple_totp-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for simple_totp-1.1.0-py3-none-any.whl |
Total release size: 9.3 kB
Release files / simple-totp-1.1.0.tar.gz
| Download URL | simple-totp-1.1.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
42cd60a0d62ce584c2a6695950e19ae571b97f38a108318d73fc9a695540ea19
|
|
BLAKE2b-256 checksum How to use checksums |
d627c0ee1daa8274fc8ab069127f33762d1cacc20a04e3bdbfa9aa06dbbbbf57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1
|
Release files / simple_totp-1.1.0-py3-none-any.whl
| Download URL | simple_totp-1.1.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7b3f7b053af5b756c6104710038bb2ad902f514680ecb2246d80b60750086cea
|
|
BLAKE2b-256 checksum How to use checksums |
312af3c11cf5f51dcf96b3d3098ccac695efc25f9ed58bed83cfcb7cd3d8d833
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1
|
Security for simple-totp 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.