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.6.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for onepassword-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49895048f18ec34f568ba24c99943aba7808e2ab87ebc63e81576dca832c0932 |
|
MD5 | 89c85727d7d47c721fbcc9554c3f70bf |
|
BLAKE2b-256 | ae1e040f3e7fc7d275f4b1ca419242eb02ea7e0a20bba150fd983e9cd5c54749 |