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 shorthand of the 1Password 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
create create an entry
edit edit an entry
delete delete an entry
download download a document
upload upload a document
share get a shareable link to an item
options:
-h, --help show this help message and exit
-j, --json format output as JSON
$ 1p personal search -t social
ID TITLE
__________________________ GitHub
__________________________ Twitter
Item creation syntax
Item creation syntax tries to determine the type of the provided values (URLs, email addresses and phone numbers), if possible. It also provides some utility to control the way values are entered and interpreted:
field=will set the type aspasswordand prompt for the value interactivelyfield=-will set the type aspasswordand generate a random value@field=valuewill explicitely set the type aspassword+field=totpsecretwill consider the provided value as a TOTP secret keysection.field=valuewill create a field under a named section
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file onep-0.6.1.tar.gz.
File metadata
- Download URL: onep-0.6.1.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.13.0-1022-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e5245a925e2f7d5e49558e20c28d84b49d52599dd55e3c0096a22c811f3dc8a
|
|
| MD5 |
fa394f5c9bf731240952db7c61c65979
|
|
| BLAKE2b-256 |
14b628ebf2a627d01aac0ba297386812f26799029c162fbcccbf1b699d141da7
|
File details
Details for the file onep-0.6.1-py3-none-any.whl.
File metadata
- Download URL: onep-0.6.1-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.13.0-1022-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69bcab2cd322dae4ad7ac3452f53681e56f2e316cef4845d3b708e1912a8e365
|
|
| MD5 |
73b599088a1b5814c304a4f62da01a42
|
|
| BLAKE2b-256 |
473eb5028cea2560039d7a670f560a45779d34324ef8b334deac9584d87e3a39
|