Skip to main content

A Python client and wrapper around the 1Password CLI.

Project description

OnePassword python client

Python wrapper around 1Password password manager for usage within python scripts and Jupyter Notebooks. Developed by Data Scientists from Wandera to be used within both research and python services use cases.


pip install 1password

Basic Usage

Currently fully tested on Mac OS.

On first usage users will be asked for both the enrolled email, secret key and master password. Mac OS users will also be prompted with installation windows to ensure you have the latest version of op.

For all following usages you will only be asked for a master password.

You will be given 3 attempts and then pointed to reset password documentation or alternatively you can restart your kernel.

No passwords are stored in memory without encryption.

from onepassword import OnePassword
import json

op = OnePassword()

# List all vaults 

# List all items in a vault, default is Private


  • Fix and test Linux implementation
  • Add UTs
  • Add test docker image
  • Align response types into JSON / lists instead of JSON strings
  • Ensure full functionality of CLI in python

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for 1password, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size 1password-0.1.0-py3-none-any.whl (8.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size 1password-0.1.0.tar.gz (7.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page