Releases: globus/globus-sdk-python
v3.4.2
v3.4.1
v3.4.0
-
Support pagination on
SearchClient.post_search
(#507) -
Add support for scroll queries to
SearchClient
.SearchClient.scroll
andSearchClient.paginated.scroll
are now available as methods, and a new helper class,SearchScrollQuery
, can be used to easily construct scrolling queries. (#507) -
Add methods to
SearchClient
for managing index roles.create_role
,delete_role
, andget_role_list
(#507) -
Add
mapped_collection
andfilter
query arguments toGCSClient.get_collection_list
(#510) -
Add role methods to
GCSClient
(#513)GCSClient.get_role_list
lists endpoint or collection rolesGCSClient.create_role
creates a roleGCSClient.get_role
gets a single roleGCSClient.delete_role
deletes a role
-
The response from
AuthClient.get_identities
now supports iteration, returning results from the"identities"
array (#514)
v3.3.1
v3.3.0
-
Add
update_group
method toGroupsClient
(#506) -
The
TransferData
andDeleteData
helper objects now accept the following parameters:notify_on_succeeded
,notify_on_failed
, andnotify_on_inactive
. All three are boolean parameters with a default ofTrue
. (#502) -
Several minor bugs have been found and fixed (#504)
-
Exceptions raised in the SDK always use
raise ... from
syntax where appropriate. This corrects exception chaining in the local endpoint and several response objects. -
The encoding of files opened by the SDK is now always
UTF-8
-
TransferData
will now reject unsupportedsync_level
values with aValueError
on initialization, rather than erroring at submission time. Thesync_level
has also had its type annotation fixed to allow forint
values. -
Several instances of undocumented parameters have been discovered, and these are now rectified.
-
-
Add
Paginator.wrap
as a method for getting a paginated methods. This interface is more verbose than the existingpaginated
methods, but correctly preserves type annotations. It is therefore preferable for users who are usingmypy
to do type checking. (#494) -
Paginator
objects are now generics over a type var for their page type. The page type is bounded byGlobusHTTPResponse
, and most type-checker behaviors will remain unchanged (#495) -
Document
globus_sdk.config.get_service_url
andglobus_sdk.config.get_webapp_url
(#496)- Internally, these are updated to be able to default to the
GLOBUS_SDK_ENVIRONMENT
setting, so specifying an environment is no longer required
- Internally, these are updated to be able to default to the
v3.2.1
v3.2.0
-
Add
iter_items
as a method onTransferData
andDeleteData
(#488) -
Add the
resource_server
property to client classes and objects. For example,TransferClient.resource_server
andGroupsClient().resource_server
are now usable to get the resource server string for the relevant services.resource_server
is documented as part ofglobus_sdk.BaseClient
and may beNone
. (#489) -
Fix type annotations on client methods with paginated variants (#491)
-
ClientCredentialsAuthorizer now accepts
Union[str, Iterable[str]]
as the type for scopes (#498) -
The implementation of several properties of
GlobusHTTPResponse
has changed (#497)-
Responses have a new property,
headers
, a case-insensitive dict of headers from the response -
Responses now implement
http_status
andcontent_type
as properties without setters
-
v3.1.0
- Add
filter
as a supported parameter toTransferClient.task_list
(#484) - The
filter
parameter toTransferClient.task_list
andTransferClient.operation_ls
can now be passed as aDict[str, str | List[str]]
. Documentation on theTransferClient
explains how this will be formatted, and is linked from the param docs forfilter
on each method (#484) - Adjust package metadata for
cryptography
dependency, specifyingcryptography>=3.3.1
and no upper bound. This is meant to help mitigate issues in which an oldercryptography
version is installed gets used in spite of it being incompatible withpyjwt[crypto]>=2.0
(#486)