python-one-password
Tag editor for 1Password
Gathers vault and credential JSON metadata from 1Password databases; enables bulk manipulation of tags
Getting Started
Before running these tools, you will need to install the 1Password CLI for your operating system.
1Password CLI <https://developer.1password.com/docs/cli/get-started/>
Installation
The python-one-password tool and its dependencies can be installed from PyPI using the standard Python PIP command:
% python3 -m pip install python_one_password
Interactive Help
The primary command and sub-commands have embedded help, which can be accessed as shown below:
% python-one-password --help % python-one-password credentials --help % python-one-password tags --help
Importing Credentials
The first step required to begin working with the 1Password database is to import credentials from one or more vault(s).
The first command that creates an interaction with the 1Password CLI tools is likely to generate an authentication prompt.
Note: supply your password and/or biometric data to unlock the 1Password database if/when prompted
You can then import credentials from one or more vaults, as shown below for a vault called “Testing”:
% python-one-password credentials fetch -n -i Testing Importing data from 1Password database... Total number of vaults: 20 Vaults imported into cache: 1 ########## Vault Summary ########## ID Name cnx76s6avkg3xikw6u5bf7jdki Testing Importing credential metadata from 1Password database... Credential data gathered for: 1 vault(s) Credential metadata records loaded: 5 Loaded cached JSON metadata: [5] records Review current credential state? (y/n): y ### Credentials: Current State ### yczzflaacyziwew2ahy24kqdxi Test4 gbikz2upboavuksupx65xb5fie Test5 fkn3cp42ouua47rqtnergchm6q Test3 rfoxd64sumvzbk2m7nkruyvr5e Test1 xiu64ukcwxtxfco7j2wjcf36eq Test2
Once a set of credentials have been loaded, you can review them with:
% python-one-password credentials show Loaded cached JSON metadata: [5] records ### Credentials: Current State ### gbikz2upboavuksupx65xb5fie [] Test5 fkn3cp42ouua47rqtnergchm6q ['c3po', 'luke', 'r2d2', 'chewbacca'] Test3 yczzflaacyziwew2ahy24kqdxi [] Test4 rfoxd64sumvzbk2m7nkruyvr5e ['c3po', 'luke', 'chewbacca'] Test1 xiu64ukcwxtxfco7j2wjcf36eq ['c3po', 'luke', 'r2d2', 'chewbacca'] Test2
You can subsequently refine your selection using match/reject search patterns:
% python-one-password credentials refine --reject chewbacca Loaded cached JSON metadata: [5] records Matching query: [3] chewbacca Subsequently rejected: 3/5 Credentials now selected: 2 Review current credential state? (y/n): y ### Credentials: Current State ### yczzflaacyziwew2ahy24kqdxi [] Test4 gbikz2upboavuksupx65xb5fie [] Test5 Update working credential set to selection? (y/n): y
When you have obtained a suitable set of credentials to work with, you can move on to tag manipulation.
Making Changes & Contributing
This project uses pre-commit, please make sure to install it before making any changes:
% pip install pre-commit % cd python-one-password % pre-commit install
It is a good idea to update the hooks to the latest version:
``% pre-commit autoupdate``
Don’t forget to tell your contributors to also install and use pre-commit.
Metadata
Release files for python-one-password 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| python_one_password-0.1.1.tar.gz | 38.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_one_password-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 61.6 kB
Release files / python_one_password-0.1.1.tar.gz
| Download URL | python_one_password-0.1.1.tar.gz |
|---|---|
| Size | 38.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76c990eda4dc9fafae7851bf723b053e8ca04d363e81e480999a8d17a64bdf19
|
|
BLAKE2b-256 checksum How to use checksums |
8bff4f4a34bb60757494c6db800d9ac19cc31263ce43de5708b95a802c7edf2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / python_one_password-0.1.1-py3-none-any.whl
| Download URL | python_one_password-0.1.1-py3-none-any.whl |
|---|---|
| Size | 22.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cf00b16cd7cc36dfa38280c5b62962df4a4bf5e516457f80d043a79eca9bda58
|
|
BLAKE2b-256 checksum How to use checksums |
7454d5b03c658cdabffecc3f358f8d6ca23026f37a775f97c5c36886c0606b6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for python-one-password 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.