Skip to main content

A Python client and wrapper around the 1Password CLI.

Project description

OnePassword python client

Build Status

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.

Installation

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 
json.loads(op.list_vaults())

# List all items in a vault, default is Private
op.get_items()

Roadmap

  • 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.

Source Distribution

1password-0.1.8.tar.gz (8.1 kB view details)

Uploaded Source

File details

Details for the file 1password-0.1.8.tar.gz.

File metadata

  • Download URL: 1password-0.1.8.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for 1password-0.1.8.tar.gz
Algorithm Hash digest
SHA256 c496b8eefb8f17dad68f850fff5c0e6ac0eed15772dff8cca3feaea356c0345e
MD5 53e1dd541eb89240988a3585e536eceb
BLAKE2b-256 4ee92b9385775356113ec22d2e4503000484089e20947fd879ded3a4c2da6c49

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page