rapidata 1.2.3__py3-none-any.whl → 1.2.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.

@@ -41,7 +41,7 @@ class RapidataDataset:
41
41
  texts = [asset.text for asset in text_asset.assets if isinstance(asset, TextAsset)]
42
42
  else:
43
43
  raise ValueError(f"Unsupported asset type: {type(text_asset)}")
44
-
44
+
45
45
  model = UploadTextSourcesToDatasetModel(
46
46
  datasetId=self.dataset_id,
47
47
  textSources=texts
@@ -53,6 +53,7 @@ class RapidataDataset:
53
53
  with ThreadPoolExecutor(max_workers=max_workers) as executor:
54
54
  futures = [
55
55
  executor.submit(upload_text_datapoint, text_asset)
56
+ for text_asset in text_assets
56
57
  ]
57
58
 
58
59
  with tqdm(total=total_uploads, desc="Uploading text datapoints") as pbar:
@@ -70,7 +71,7 @@ class RapidataDataset:
70
71
  raise ValueError(
71
72
  "metadata must be None or have the same length as media_paths"
72
73
  )
73
-
74
+
74
75
  for media_path in media_paths:
75
76
  if isinstance(media_path, MultiAsset):
76
77
  assert all(
@@ -84,7 +85,7 @@ class RapidataDataset:
84
85
  paths = [asset.path for asset in media_asset.assets if isinstance(asset, MediaAsset)]
85
86
  else:
86
87
  raise ValueError(f"Unsupported asset type: {type(media_asset)}")
87
-
88
+
88
89
  assert all(
89
90
  os.path.exists(media_path) for media_path in paths
90
91
  ), "All media paths must exist on the local filesystem."
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rapidata
3
- Version: 1.2.3
3
+ Version: 1.2.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
@@ -318,7 +318,7 @@ rapidata/rapidata_client/config.py,sha256=tQLgN6k_ATOX1GzZh38At2rgBDLStV6rJ6z0vs
318
318
  rapidata/rapidata_client/country_codes/__init__.py,sha256=FB9Dcks44J6C6YBSYmTmNZ71tE130x6NO_3aLJ8fKzQ,40
319
319
  rapidata/rapidata_client/country_codes/country_codes.py,sha256=Q0HMX7uHJQDeLCFPP5bq4iYi6pgcDWEcl2ONGhjgoeU,286
320
320
  rapidata/rapidata_client/dataset/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
321
- rapidata/rapidata_client/dataset/rapidata_dataset.py,sha256=mIQBh7pANhFe2u3xEgsdDG_ZY7i-o8lKDAaRfACipMU,4921
321
+ rapidata/rapidata_client/dataset/rapidata_dataset.py,sha256=12mvcpHa-ZpDOFhSuqnSb6pFhR1q7rF98fgiDBuONdw,4935
322
322
  rapidata/rapidata_client/dataset/rapidata_validation_set.py,sha256=rSRZQ67-8XjLa1_pWutieBrQfmvPA0fOMK7QKQpxsX0,10970
323
323
  rapidata/rapidata_client/dataset/validation_rapid_parts.py,sha256=uzpOZFqQu8bG6vmjcWWUNJPZsRe28OmnyalRE6ry8tk,2317
324
324
  rapidata/rapidata_client/dataset/validation_set_builder.py,sha256=xPZBzNRPausIbYNRVinIhsVGnKSIIuxP5tjKkV4hOyo,7990
@@ -369,7 +369,7 @@ rapidata/service/local_file_service.py,sha256=pgorvlWcx52Uh3cEG6VrdMK_t__7dacQ_5
369
369
  rapidata/service/openapi_service.py,sha256=KwFJmgnyfrzmSjs6wGh5J6ESMLvtKazGcYoewWeL8PU,2038
370
370
  rapidata/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
371
371
  rapidata/utils/image_utils.py,sha256=TldO3eJWG8IhfJjm5MfNGO0mEDm1mQTsRoA0HLU1Uxs,404
372
- rapidata-1.2.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
373
- rapidata-1.2.3.dist-info/METADATA,sha256=nsayylvqwD1vgLqMk5oQM7IWUNaP9n-WvlSfc57L0I0,1012
374
- rapidata-1.2.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
375
- rapidata-1.2.3.dist-info/RECORD,,
372
+ rapidata-1.2.4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
373
+ rapidata-1.2.4.dist-info/METADATA,sha256=mxCsVK9pFmWon7FhPSLcm8PzSE7_B48T0OJo3FGxLqc,1012
374
+ rapidata-1.2.4.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
375
+ rapidata-1.2.4.dist-info/RECORD,,