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.1.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file onepassword-0.3.1.tar.gz
.
File metadata
- Download URL: onepassword-0.3.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.3 CPython/3.8.1 Linux/5.4.19-1-lts
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19fc5d46833fe41105a9319d57a618e9a316f88d1b00e3fc35c8038c645d0f17 |
|
MD5 | dca4dcbbd4da35231129c114307fc433 |
|
BLAKE2b-256 | c494ee4d3382c741cbb386c458dbabd604666728c0ccc137923be199f6fad53f |
File details
Details for the file onepassword-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: onepassword-0.3.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.3 CPython/3.8.1 Linux/5.4.19-1-lts
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5397b409f768b332ea0b7c6353fc0a16336fe742e6eb1213db5cd3675b618040 |
|
MD5 | eeeaa7fa276cc47aa960d654fcc13bf1 |
|
BLAKE2b-256 | 0caa3b60fc6d4c9e40ff09e834349dddf15db282d7407b9c95d1fae69259fd35 |