t2d2-sdk 2.2.1__tar.gz → 2.2.2__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: t2d2-sdk
3
- Version: 2.2.1
3
+ Version: 2.2.2
4
4
  Summary: T2D2 SDK
5
5
  Author-email: Badri Hiriyur <badri@t2d2.ai>
6
6
  Project-URL: Homepage, https://t2d2.ai
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '2.2.1'
16
- __version_tuple__ = version_tuple = (2, 2, 1)
15
+ __version__ = version = '2.2.2'
16
+ __version_tuple__ = version_tuple = (2, 2, 2)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: t2d2-sdk
3
- Version: 2.2.1
3
+ Version: 2.2.2
4
4
  Summary: T2D2 SDK
5
5
  Author-email: Badri Hiriyur <badri@t2d2.ai>
6
6
  Project-URL: Homepage, https://t2d2.ai
@@ -982,28 +982,23 @@ class T2D2(object):
982
982
  ################################################################################################
983
983
  def upload_reports(self, report_paths):
984
984
  """
985
- Updates the details of multiple 3D models in the current project.
985
+ Uploads reports into a project.
986
986
 
987
- This method accepts a list of dictionaries, each representing updates to a specific 3D model identified by its ID. The updates can include changes to model metadata such as name, size, and status. The method applies these updates to each corresponding model in the project. If a 3D model ID does not exist within the project, that update is ignored.
987
+ This method accepts a list of string paths to locally available files (PDF or docx).
988
988
 
989
989
  Args:
990
- threed_updates (list of dict): A list of dictionaries, each containing updates for a specific 3D model. Each dictionary must include an 'id' key corresponding to the model ID, along with any other keys representing the fields to be updated.
990
+ report_paths (list of str): A list of strings specifying local paths of files
991
991
 
992
992
  Returns:
993
- list of dict: A list of dictionaries, each representing the updated details of a 3D model. Each dictionary contains keys such as 'id', 'name', 'size', and 'status', reflecting the applied updates.
993
+ dict: response from API.
994
994
 
995
995
  Raises:
996
- ValueError: If `threed_updates` is empty, not a list, or if any dictionary in the list does not contain an 'id' key.
996
+ ValueError: If `report_paths` is empty, not a list
997
997
  ConnectionError: If there is a problem connecting to the T2D2 API to apply the updates.
998
998
 
999
999
  Example:
1000
- >>> threed_updates = [
1001
- ... {'id': 'model1_id', 'name': 'updated_model1.obj', 'size': '3MB'},
1002
- ... {'id': 'model2_id', 'status': 'Processing'}
1003
- ... ]
1004
- >>> updated_models = update_threed(threed_updates)
1005
- >>> print(updated_models)
1006
- [{'id': 'model1_id', 'name': 'updated_model1.obj', 'size': '3MB', 'status': 'Uploaded'}, ...]
1000
+ >>> report_path = "./reports/report_123.pdf"
1001
+ >>> t2d2.upload_reports([report_path])
1007
1002
  """
1008
1003
 
1009
1004
  if not self.project:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes