Using onepassword-sdk-python with 1password.local

Python integration

✓ Official SDK
Install
pip install onepassword-sdk-python
Quick start
import onepassword-sdk-python

# Set your API key
client = onepassword_sdk_python.Client(api_key="YOUR_API_KEY")
Get state of the server and its dependencies.
curl \
  -H "Authorization: Bearer $API_KEY" \
  http://1password.local/health
Get all Vaults
curl \
  -H "Authorization: Bearer $API_KEY" \
  http://1password.local/vaults
Query server for exposed Prometheus metrics
curl \
  -H "Authorization: Bearer $API_KEY" \
  http://1password.local/metrics
SDK on GitHub 📄 API Docs
SDK
onepassword-sdk-python
Python
API
1password.local
1password.local:connect
At a glance
Language Python
Endpoints15
Base URLhttp://1password.local
✓ Official