Skip to content

Releases: zcutlip/pyonepassword

4.0.0b0

12 Oct 04:27
21b0a6d
Compare
Choose a tag to compare
4.0.0b0 Pre-release
Pre-release

Added

  • 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

    • new whoami dict
    • On OP() initialization, accomodate whoami failure when the token hasn't been used recently

Changed

  • Removed Python 3.8 support
  • Added Python 3.12 support
  • Ensure all methods for section lookup by label raise OPSectionNotFound if no section is found matching the given label
  • Ensure all methods for field lookup by label rais OPFieldNotFound if no field is found matching the given label

Deprecated

  • OPAbstractItem.field_value_by_section_title()
    • call OPAbstractItem.field_value_by_section_label() instead

Misc

  • Updated testing configuration in conjuncton with refactored mock-op
  • Add FUNDING.yml

3.12.1

26 Jun 19:58
3ced5ac
Compare
Choose a tag to compare

Fixed

  • OP.item_create() broken due to subcommand args not added to arugment list (gh-136)

Miscellaneous

  • Fixed scripts/batch_create.py not setting tags properly
  • Enable console debug logging in scripts/batch_create.py

3.12.0

22 Jun 22:06
fcf2539
Compare
Choose a tag to compare

Added

  • Account and user UUIDs are now partially masked when logged (gh-130)
  • New class, RedactedString, for automatically redacting strings when appropriate (gh-130)

3.11.1

21 Jun 23:00
1b01bf3
Compare
Choose a tag to compare

Fixed

  • Properly package up JSON data files under data/svc_acct_commands (gh-131)
  • Change pytest behavior under tox to better detect files not properly packaged (gh-131)

3.11.0

07 Jun 20:22
2871be5
Compare
Choose a tag to compare

Fix support for removing an account from the op CLI config (gh-121)

Added

  • OP.account_forget() method with support for op account forget in CLI version >= 2

Removed

  • OP.forget()
    • This has been broken since the CLI version 2 refactor in pyonepassword version 3.0.0

3.10.0

31 May 02:53
58fb370
Compare
Choose a tag to compare

Added

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.

  • New exception classes:
    • OPAuthenticationException
      • For any issue with authentication during OP() initialization
      • If authentication has exipired prior to performing an operation
    • OPCLIPanicException
      • the rare case the op command itself crashes
    • OPCmdMalformedSvcAcctTokenException
      • in the case that the op command is unable to parse a service account token
    • OPRevokedSvcAcctTokenException
      • The service account token in use has been revoked and is no longer valid

Deprecated

  • The exception class OPNotSignedInException is now deprecated:
    • handle OPAuthenticationException instead

3.9.0

07 Apr 01:08
bec1363
Compare
Choose a tag to compare

Added

  • OPServerItem properties corresponding to "hosting provider" fields (gh-115)

Misc

  • Significant refactor of testing of item types (tests/test_item_types) (gh-41)

3.8.0

28 Mar 00:35
abdb22b
Compare
Choose a tag to compare

Added

  • Support for database item creation via OPDatabaseItemTemplate (gh-111)

3.7.1

14 Mar 04:34
e99e077
Compare
Choose a tag to compare

Fixed

  • Check if authorization has expired or is otherwise invalid before performing op operations (gh-84)
    • Raise OPNotSignedInException rather than the generic OPCmdFailedException
  • Detect if an op command failure was actually mock-op failing to find a response definition
    • This was masking test failures that are expecting simulated command failures

3.7.0

10 Mar 23:47
db109ae
Compare
Choose a tag to compare

Added

  • OPDatabaseItem class for retrieving database 1Password items (gh-98)

Misc

Substantial refactor of automated test expected data for item objects

Contributors