Skip to main content

1Password CLI helper

Project description

1p - 1Password CLI helper

1p is a wrapper around 1Password's op CLI tool to give a more user-friendly interface to secret retrieval.

Requires Python >= 3.7.

It opens a session with 1Password and stores the session token in the system's keyring, optionally, you can run with ONEP_SECRET_BACKEND=plain to store it under ~/.cache/1p.

It requires that the configured 1Password account has a shorthand defined (when using op account add).

Installation

$ # From PyPI
$ pip install onep

$ # Development build from GitHub
$ https://github.com/apognu/1p/releases/download/tip/onep-tip-py3-none-any.whl

Usage

$ 1p --help
usage: 1p [-h] [-j] ACCOUNT COMMAND ...

positional arguments:
  ACCOUNT
  COMMAND
    signin    Authenticate into a 1Password account
    vaults    List available vaults
    vault     Show information about a vault
    search    Search entries matching provided term
    show      Display an entry
    share     Get a shareable link to an item

options:
  -h, --help  show this help message and exit
  -j, --json

$ 1p personal search -t social
ID                            TITLE
__________________________    GitHub
__________________________    Twitter

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

onep-0.4.0.tar.gz (7.6 kB view hashes)

Uploaded Source

Built Distribution

onep-0.4.0-py3-none-any.whl (10.0 kB view hashes)

Uploaded Python 3

Supported by

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