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.3.2.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for onepassword-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c475710d9fbd8c7fa5307343daeb0104bc3754d9791630e5a1155cebc210d6c2 |
|
MD5 | 1066efa77c9c94227e75dedf2977ead0 |
|
BLAKE2b-256 | 92aa084fc5660a479cf1e2a7a7da30a5453fe3af71202c8f5c94a04c2bbded24 |