accli 0.6.1__tar.gz → 0.7.1__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: accli
3
- Version: 0.6.1
3
+ Version: 0.7.1
4
4
  Summary: IIASA Accelerator Client
5
5
  Author-email: Wrufesh S <wrufesh@gmail.com>
6
6
  License: The MIT License (MIT)
@@ -6,6 +6,7 @@ import requests
6
6
  import json
7
7
  import base64
8
8
  import urllib3
9
+ from urllib.parse import quote
9
10
  from pathlib import Path
10
11
  from typing import List, Tuple
11
12
 
@@ -245,9 +246,10 @@ class AcceleratorJobProjectService:
245
246
  return todict(res.data)
246
247
 
247
248
  def get_put_create_multipart_upload_id(self, filename):
249
+ encoded_filename = quote(filename)
248
250
  res = self.http_client_request(
249
251
  "GET",
250
- f"{self.cli_base_url}/create-multipart-upload-id/{filename}",
252
+ f"{self.cli_base_url}/multipart-upload-id/?filename={encoded_filename}",
251
253
  headers=self.common_request_headers
252
254
  )
253
255
 
@@ -368,7 +370,8 @@ class AcceleratorJobProjectService:
368
370
  self,
369
371
  validated_bucket_object_id: int,
370
372
  dataset_template_id: int,
371
- validated_metadata: dict
373
+ validated_metadata: dict,
374
+ validation_supporting_bucket_object_ids: List[int]
372
375
  ):
373
376
  headers = {"Content-Type": "application/json"}
374
377
 
@@ -380,7 +383,8 @@ class AcceleratorJobProjectService:
380
383
  json=dict(
381
384
  validated_bucket_object_id=validated_bucket_object_id,
382
385
  dataset_template_id=dataset_template_id,
383
- validated_metadata=validated_metadata
386
+ validated_metadata=validated_metadata,
387
+ validation_supporting_bucket_object_ids=validation_supporting_bucket_object_ids
384
388
  ),
385
389
  headers=headers
386
390
  )
@@ -1,3 +1,3 @@
1
1
  # Please strictly put double quote to use this info for git tag
2
2
  # Read developer guide for git tag command with regex
3
- VERSION = "v0.6.1"
3
+ VERSION = "v0.7.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: accli
3
- Version: 0.6.1
3
+ Version: 0.7.1
4
4
  Summary: IIASA Accelerator Client
5
5
  Author-email: Wrufesh S <wrufesh@gmail.com>
6
6
  License: The MIT License (MIT)
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