unopass
unopass is a convenient python module that allows you to retrieve secrets from the 1Password CLI at runtime using your biometrics. (E.g. Touch ID, etc.)
This eliminates the need of storing secrets in env, or conf files and provides a more secured local workflow.
Go version: HERE
Common use cases:
- Access AWS CLI, Google Cloud Platform secrets
- Access API secrets in your scripts
- Use with other tools like GAM, see: GAMpass
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
Metadata
Release files for unopass 0.0.22
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 |
|---|---|---|---|---|
| unopass-0.0.22.tar.gz | 3.7 kB | Without provenance | Details for unopass-0.0.22.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| unopass-0.0.22-py3-none-any.whl | Python 3 | none | any | Details for unopass-0.0.22-py3-none-any.whl |
Total release size: 7.9 kB
Release files / unopass-0.0.22.tar.gz
| Download URL | unopass-0.0.22.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f7cb2766cc735c84d1da0e21fb47e6379dbf9f40d6a62d4a20dd341ad66901c
|
|
BLAKE2b-256 checksum How to use checksums |
51d606a2272bd687f29db3c228da981d964f230ba423148df832084e133b5e83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / unopass-0.0.22-py3-none-any.whl
| Download URL | unopass-0.0.22-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
25725bba69ea7cce4f4734d70dc982a79a21da0dd1386bbf52e92f928bd2b3c4
|
|
BLAKE2b-256 checksum How to use checksums |
c8f017667a247e3f089011fe13db9acbee21059b3340f5ce4d2228cd6e0fc710
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for unopass 0.0.22
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.