unopass is a convenient python module that allows you to retrieve secrets from the 1Password CLI
Project description
unopass
Written by Amado Tejada
unopass is a convenient python module that allows you to retrieve secrets from the 1Password CLI at runtime using your biometrics.
This eliminates the need of storing secrets in env, or conf files and provides a more secured local workflow.
Note: unopass is early alpha software and should be tested extensively.
Requirements:
- 1Password CLI v2.4.1 or higher
- 1Password App v8.7.1 or higher
- Biometrics enabled
Security
Authorization expires after 10 minutes of inactivity in the session. There's a hard limit of 12 hours, after which you must reauthorize.
Learn about 1Password Biometrics Security
Install
pip3 install unopass
You can also import unopass from source.
Example
from unopass import unopass as secret
"""
secret.unopass({VAULT}, {ITEM}, {FIELD})
OPTIONAL: signout of the 1Password CLI session:
call secret.signout() with deauthorize=True to end of the 1Password session
"""
username = secret.unopass("personal", "server", "username")
password = secret.unopass("personal", "server", "password")
secret.signout(deauthorize=True)
print(f"user: {username}\npass: {password}")
Disclaimer
This software {unopass} has not been endorsed or supported by 1Password, AgileBits Inc. and is in no way associated with them and/or its subsidiaries or affiliate.
License
unopass is released under the MIT License
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 Distribution
Built Distribution
File details
Details for the file unopass-0.0.21.tar.gz
.
File metadata
- Download URL: unopass-0.0.21.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c90e5be838168b52544d678c7223087867ba63320a554a22fb14677e77b6d64e |
|
MD5 | 4d81386b2bef7d42a5be15cfb6a03161 |
|
BLAKE2b-256 | f338ffed55145c6a23d7064d72a69b7525adf9913bcbaf75182140cb798351a5 |
File details
Details for the file unopass-0.0.21-py3-none-any.whl
.
File metadata
- Download URL: unopass-0.0.21-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9e16d61852ae1e683aff77cf47f6260d8ccbe65991a77653aa5400b7aa884c8 |
|
MD5 | 9dcef0256abdce0bbfdc69e71ecc6935 |
|
BLAKE2b-256 | afc1e82425948a0deeafe8d4ee75a0b7a1494f885b832ec456f22520bdef4d54 |