A python API to query a 1Password account using the 'op' command-line tool
MIT License
Bot releases are hidden (Show)
op
command rather than reading from temp file (gh-172)op
CLI Version SupportDeprecated support
op
versions < 2.26.0 and >= 2.21.0 (gh-200)Unsupported
op
versions < 2.21.0 (gh-200)Published by zcutlip 5 months ago
op
CLI tool at run-time (gh-162)opversion
commandOPCLIVersion
as APIOPCLIVersionSupportException
classop
versions < 2.24.0 and >= 2.19.0op
versions < 2.19.0op
version checks for special behaviors where the version is no longer supported (gh-193)Published by zcutlip 7 months ago
op
config (e.g. .config/op/confg
) missing is no longer a failure if 1Password app integration is enabled (gh-187)Published by zcutlip 10 months ago
OP.user_edit()
windows-latest
to OS matrix in github testing workflowPublished by zcutlip 11 months ago
OP.document_edit()
docs/document-editing.md
examples/document_editing
Substantial reorganization of tests/
Published by zcutlip 11 months ago
Raise OPItemEditException
when editing item fields if the item does not exist.
Published by zcutlip 12 months ago
Item editing (gh-143):
OP.item_edit_add_password_field()
OP.item_edit_add_url_field()
OP.item_edit_add_text_field()
OP.item_edit_set_password()
OP.item_edit_set_url_field()
OP.item_edit_set_text_field()
OP.item_edit_delete_field()
OP.item_edit_favorite()
OP.item_edit_generate_password()
OP.item_edit_tags()
OP.item_edit_title()
OP.item_edit_url()
OPAbstractItem.field_value_by_section_label()
(gh-144)
field_value_by_section_title()
Support for op
new whoami
behavior version 2.20.0 (gh-146)
whoami
dictOP()
initialization, accomodate whoami
failure when the token hasn't been used recentlyOPSectionNotFound
if no section is found matching the given label (gh-144)OPFieldNotFound
if no field is found matching the given label (gh-144)OPAbstractItem.field_value_by_section_title()
(gh-144)
OPAbstractItem.field_value_by_section_label()
insteadOP()
: (gh-161)
use_existing_session
(replaced by existing_auth
)account_shorthand
(replaced by account
)OPNotSignedInException
class (gh-161)
OPAuthenticationException
docs/item-editing.md
examples/item_editing
mock-op
FUNDING.yml
setup.py
automatically convert relative URLs in long_description
to absolute GitHub URLs so they work on PyPIPublished by zcutlip 12 months ago
Installable via pip3 install --upgrde --pre pyonepassword==4.0.0.b3
OP.item_edit_add_url_field()
docs/item-editing.md
Published by zcutlip 12 months ago
OP.item_edit_add_password_field()
OP.item_edit_delete_field()
Published by zcutlip about 1 year ago
Item editing:
OP.item_edit_generate_password()
OP.item_edit_set_password()
OP.item_edit_set_title()
OP.item_edit_set_favorite()
OP.item_edit_set_tags()
OP.item_edit_set_url()
OP.item_edit_set_text_field()
OP.item_edit_add_text_field()
OP.item_edit_set_url_field()
OPAbstractItem.field_value_by_section_label()
as a replacement for poorly named field_value_by_section_title()
Support for op
new whoami
behvior version 2.20.0
whoami
dictOP()
initialization, accomodate whoami
failure when the token hasn't been used recentlyOPSectionNotFound
if no section is found matching the given labelOPFieldNotFound
if no field is found matching the given labelOPAbstractItem.field_value_by_section_title()
OPAbstractItem.field_value_by_section_label()
insteadmock-op
FUNDING.yml
Published by zcutlip over 1 year ago
OP.item_create()
broken due to subcommand args not added to arugment list (gh-136)scripts/batch_create.py
not setting tags properlyscripts/batch_create.py
Published by zcutlip over 1 year ago
Published by zcutlip over 1 year ago
data/svc_acct_commands
(gh-131)pytest
behavior under tox
to better detect files not properly packaged (gh-131)Published by zcutlip over 1 year ago
Fix support for removing an account from the op
CLI config (gh-121)
OP.account_forget()
method with support for op account forget
in CLI version >= 2OP.forget()
pyonepassword
version 3.0.0Published by zcutlip over 1 year ago
Support for authentication via service accounts: Set OP_SERVICE_ACCOUNT_TOKEN
prior to initializing OP
object. See docs/AUTHENTICATION.md
for more details.
Note: The minimum supported op
command version is 2.18.0-beta.01.
OPAuthenticationException
OP()
initializationOPCLIPanicException
op
command itself crashesOPCmdMalformedSvcAcctTokenException
op
command is unable to parse a service account tokenOPRevokedSvcAcctTokenException
OPNotSignedInException
is now deprecated:
OPAuthenticationException
insteadPublished by zcutlip over 1 year ago
tests/test_item_types
) (gh-41)Published by zcutlip over 1 year ago
OPDatabaseItemTemplate
(gh-111)Published by zcutlip over 1 year ago
op
operations (gh-84)
OPNotSignedInException
rather than the generic OPCmdFailedException
op
command failure was actually mock-op
failing to find a response definition
Published by zcutlip over 1 year ago
OPDatabaseItem
class for retrieving database 1Password items (gh-98)Substantial refactor of automated test expected data for item objects
Published by zcutlip over 1 year ago
OP.item_delete_multiple()
(gh-82)tags
property to all items and item descriptors (gh-93)