github code42/py42 v1.7.0

latest releases: v1.27.1, v1.27.0, v1.26.2...
3 years ago

1.7.0 - 2020-07-21

Added

  • Functions for managing role assignment:

    • sdk.users.get_available_roles()
    • sdk.users.get_roles()
    • sdk.users.add_role()
    • sdk.users.remove_role()
  • __eq__ and __hash__ methods to the py42.sdk.queries.query_filter.QueryFilter class to enable easier comparison of filters

  • __eq__ and __contains__ methods to the py42.sdk.queries.query_filter.FilterGroup class to enable easier comparison of and membership tests of filter groups

Changed

  • When calling __str__ or __iter__ on a FilterGroup instance, the filter results have set() called on them to remove duplicate filters (if they exist) as well
    as sorts the results. This enables comparing two FilterGroups that might have been constructed differently but ultimately return the exact same results in a query.
  • FilterGroup.filter_clause property now has a setter, making it easy to change the clause on an existing filter group.

Removed

  • filter_clause arg on FilterGroup.from_dict method. The clause will automatically be derived from the dict itself.

Don't miss a new py42 release

NewReleases is sending notifications on new releases.