Python wrapper for the 1password CLI
Project description
onepassword-python
Python wrapper for the 1password CLI
Usage
from onepassword import OnePassword
secret = {"password": "<YOUR-PASSWORD-HERE>",
"username": "<YOUR-USERNAME-HERE>",
"signin_address": "<YOUR-1PASSWORD-ORGNIZATION-ADDRESS>",
"secret_key": "<YOUR-1PASSWORD-SECRET-KEY>"}
op = OnePassword(secret=secret)
documents = op.list("documents")
pem_keys = (doc for doc in documents if doc["overview"]["title"].endswith("pem"))
first_key = next(pem_keys)
key_contents = op.get("document", first_key["uuid"])
print(key_contents)
API
onepassword.OnePassword
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
onepassword-0.1.4.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file onepassword-0.1.4.tar.gz
.
File metadata
- Download URL: onepassword-0.1.4.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0 CPython/3.8.1 Linux/4.19.99-1-lts
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5d97b843368a08ae6307ad401c800a24f94ebc2a1ebdc70310b9715753ec44a |
|
MD5 | d14f1c624db2e7fb3d046209b5ccf61e |
|
BLAKE2b-256 | d93beab7a383d0eb1144e2dc0ebd5e3d9828d38b4da81b1f426c08512425d82e |
File details
Details for the file onepassword-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: onepassword-0.1.4-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0 CPython/3.8.1 Linux/4.19.99-1-lts
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d5608bb5a84ed5566b0c5140ea9029aed1bef593b5394355b207fe9e09f8eb6 |
|
MD5 | 64fe03445ce59357a12fb94c432eb319 |
|
BLAKE2b-256 | ed266de156f6b1da7c405996266cc2e88efe0101cf0838008c7d72dcbdb125d1 |