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.3.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file onepassword-0.1.3.tar.gz
.
File metadata
- Download URL: onepassword-0.1.3.tar.gz
- Upload date:
- Size: 3.1 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 | c20da0f84381b6eed5eefd7cd51b90123cb71d9bdb73b8a46cd59bdc4027708d |
|
MD5 | 484819e4fa8fe86674bd46cc0a8a77a7 |
|
BLAKE2b-256 | b5843ba359054a5e32a3a3d2afe84ecaa55fb9dc57c7af5e2d979fc6de60f136 |
File details
Details for the file onepassword-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: onepassword-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.3 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 | 05e7739b94f13b06268fa362f803c7dac201819944f3b72a9b13d20334a73fb0 |
|
MD5 | 47f91148277bcc641d17e0211de204dd |
|
BLAKE2b-256 | 25f2a08f3b8865ce0d12285d9ad6bc884486eae3376bf8e803156b6e8fbebb96 |