rapidata 1.6.3__py3-none-any.whl → 1.6.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of rapidata might be problematic. Click here for more details.

@@ -182,7 +182,7 @@ class CredentialManager:
182
182
  """Create a new client using the access token."""
183
183
  try:
184
184
  # set the display name to the hostname
185
- display_name = f"{gethostname()} - CLI"
185
+ display_name = f"{gethostname()} - Python API Client"
186
186
  response = requests.post(
187
187
  f"{self.endpoint}/Client",
188
188
  headers={
@@ -25,11 +25,15 @@ class OpenAPIService:
25
25
  client_secret=client_secret,
26
26
  endpoint=token_url,
27
27
  oauth_scope=oauth_scope,
28
- cert_path=cert_path
28
+ cert_path=cert_path,
29
29
  )
30
30
  client_configuration = Configuration(host=endpoint, ssl_ca_cert=cert_path)
31
31
  self.api_client = ApiClient(configuration=client_configuration)
32
32
 
33
+ self.api_client.configuration.api_key["bearer"] = (
34
+ f"Bearer {token_manager.fetch_token().access_token}"
35
+ )
36
+
33
37
  self._client_id = client_id
34
38
  self._client_secret = client_secret
35
39
  self._oauth_scope = oauth_scope
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rapidata
3
- Version: 1.6.3
3
+ Version: 1.6.4
4
4
  Summary: Rapidata package containing the Rapidata Python Client to interact with the Rapidata Web API in an easy way.
5
5
  License: Apache-2.0
6
6
  Author: Rapidata AG
@@ -371,11 +371,11 @@ rapidata/rapidata_client/workflow/evaluation_workflow.py,sha256=IBQoVFxOaeCDIBfa
371
371
  rapidata/rapidata_client/workflow/free_text_workflow.py,sha256=VaypoG3yKgsbtVyqxta3W28eDwdnGebCy2xDWPCBMyo,1566
372
372
  rapidata/rapidata_client/workflow/transcription_workflow.py,sha256=_KDtGCdRhauJm3jQHpwhY-Hq79CLg5I8q2RgOz5lo1g,1404
373
373
  rapidata/service/__init__.py,sha256=s9bS1AJZaWIhLtJX_ZA40_CK39rAAkwdAmymTMbeWl4,68
374
- rapidata/service/credential_manager.py,sha256=CNr7jasOR3vN2XCYtCk4EI38KV2ggSVAg1w_Hhp5LII,7929
374
+ rapidata/service/credential_manager.py,sha256=I0BvNsq7a2zJhPqXa-ESot9037cTu5TaC2iYJjWIRv0,7943
375
375
  rapidata/service/local_file_service.py,sha256=pgorvlWcx52Uh3cEG6VrdMK_t__7dacQ_5AnfY14BW8,877
376
- rapidata/service/openapi_service.py,sha256=ejAIilSjRweGcR4nN4txqZNDuoI-WIJEuagdN2oSd58,2335
376
+ rapidata/service/openapi_service.py,sha256=XNTCCBsC-3GwB2TxZ5XQaqzRnaViSIZ3yIWeVl9J20U,2472
377
377
  rapidata/service/token_manager.py,sha256=JZ5YbR5Di8dO3H4kK11d0kzWlrXxjgCmeNkHA4AapCM,6425
378
- rapidata-1.6.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
379
- rapidata-1.6.3.dist-info/METADATA,sha256=q-e7zziNADs-DUkyxagIGXd1wh9TRiPAs_ELku0_LEs,1056
380
- rapidata-1.6.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
381
- rapidata-1.6.3.dist-info/RECORD,,
378
+ rapidata-1.6.4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
379
+ rapidata-1.6.4.dist-info/METADATA,sha256=4ZrSMPGIdOa00Bw1wagYULKBk1PoKKbz8gIuDN4ME8Q,1056
380
+ rapidata-1.6.4.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
381
+ rapidata-1.6.4.dist-info/RECORD,,