Skip to main content

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

Metadata

Release files for onepassword 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for onepassword 0.4.1
File Size Uploaded Provenance
onepassword-0.4.1.tar.gz 3.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for onepassword 0.4.1
File Interpreter ABI Platform
onepassword-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / onepassword-0.4.1.tar.gz

Download URL onepassword-0.4.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ebd932ba62703671260a57743277520fc66a06971ff2e3f59e4296c7ff0c34f7
BLAKE2b-256 checksum
How to use checksums
57e66b18570df436e46fd4c89689bad8f30fe0f91deb1be448f9ada284e18749
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.9 CPython/3.8.3 Linux/5.4.48-1-lts

Release files / onepassword-0.4.1-py3-none-any.whl

Download URL onepassword-0.4.1-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4b5401fbeac6a97f429304a6776b852f79d636028e764f042dd2c3140a1a03e
BLAKE2b-256 checksum
How to use checksums
c6561f259b2041e4919d6999e1e7d4b6e209c8b47e8cfc0bccc7e71ef8328196
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.9 CPython/3.8.3 Linux/5.4.48-1-lts

Security for onepassword 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page