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.4.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for onepassword-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4b5401fbeac6a97f429304a6776b852f79d636028e764f042dd2c3140a1a03e |
|
MD5 | 1ec743f646cff9249a1ccbdd52c2e681 |
|
BLAKE2b-256 | c6561f259b2041e4919d6999e1e7d4b6e209c8b47e8cfc0bccc7e71ef8328196 |