Skip to main content

OnePassword Keyring

Implementation of the Keyring backend code reading secrets from 1Password using 1password-cli.

Overview

The Keyring python package provides a handy single point of entry for any secret holding system.

This projects allows Keyring to read secrets from 1Password, a multiplatform cloud password manager. It is based on and forked from bitwarden-keyring by ewjoachim.

This backend assumes that it will be used in the context of a CLI application, and that it can communicate with the user using sdtin, stdout and stderr.

Requirements

This project uses the official 1Password CLI. You will need to install it and configure it before using this backend.

Installation and configuration

pip install onepassword-keyring

Usage

Use as a normal keyring backend. It is installed with priority 10 so it's likely going to be selected first.

onepassword-keyring will automatically ask for credentials when needed.

Caveats

This fork was made for personal use and is not guaranteed to work in all cases. Please use with caution, as I can't take responsibility for any issues that may arise from using this package.

onepassword-keyring was only tested with:

  • macOS, using the 1password-cli from brew

As mentioned, onepassword-keyring only works in the context of a CLI application with access to standard inputs and output.

Licensing

onepassword-keyring is published under the terms of the MIT License.

Acknowledgment

This package is forked from and heavily based on bitwarden-keyring by ewjoachim

Release files for onepassword-keyring 0.1.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-keyring 0.1.1
File Size Uploaded
onepassword-keyring-0.1.1.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for onepassword-keyring 0.1.1
File Interpreter ABI Platform
onepassword_keyring-0.1.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 9.5 kB

Release files / onepassword-keyring-0.1.1.tar.gz

Download URL onepassword-keyring-0.1.1.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
38999a38d646e77b841623dc219f36144284817fc69b7f2b771144dc4fd46108
BLAKE2b-256 checksum
How to use checksums
d3e579aee1c8e74bd662025ca9e0f397f6e5331f3b5f6a80aa50d87d6474ecd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / onepassword_keyring-0.1.1-py2.py3-none-any.whl

Download URL onepassword_keyring-0.1.1-py2.py3-none-any.whl
Size 4.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2a551eab4152465b55c07cf52dfae22eeefe9ecad954388e2111e546cbf04fb5
BLAKE2b-256 checksum
How to use checksums
9a1b115066a511ec3f19879e5fa57177ad735af6373a38b6cab8ca06b0d7c14a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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