PyQuantimClient 1.0.81__tar.gz → 1.0.82__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: PyQuantimClient
3
- Version: 1.0.81
3
+ Version: 1.0.82
4
4
  Summary: Python client to access quantIM services
5
5
  Author: Daniel Velasquez
6
6
  Author-email: daniel.velasquez@sura-im.com
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyQuantimClient
3
- Version: 1.0.81
3
+ Version: 1.0.82
4
4
  Summary: Python client to access quantIM services
5
5
  Author: Daniel Velasquez
6
6
  Author-email: daniel.velasquez@sura-im.com
@@ -4,7 +4,7 @@ setup(
4
4
  name='PyQuantimClient',
5
5
  packages=['PyQuantimClient'],
6
6
  package_dir={'PyQuantimClient': 'src'},
7
- version='1.0.81',
7
+ version='1.0.82',
8
8
  description='Python client to access quantIM services',
9
9
  author='Daniel Velasquez',
10
10
  author_email='daniel.velasquez@sura-im.com',
@@ -10,7 +10,7 @@ class performance(quantim):
10
10
  def __init__(self, username, password, secretpool, env="pdn", api_url=None):
11
11
  super().__init__(username, password, secretpool, env, api_url)
12
12
 
13
- def load_gaps(self, file_path, ref_date=None, country=None, fields=None, port_names=None, clean=False, mv_to_usd=False):
13
+ def load_gaps(self, file_path):
14
14
  '''
15
15
  Load gaps.
16
16
  '''
@@ -18,16 +18,15 @@ class performance(quantim):
18
18
  filename = re.split(r'[\\/]', file_path)[-1]
19
19
  bucket = "condor-sura-wm"
20
20
  key = f"taa/gaps/{filename}"
21
- resp = self.upload_with_presigned_url(file_path, "condor-pat", "inputs/asulado/BD_Isin.csv")
21
+ resp = self.upload_with_presigned_url(file_path, bucket, key)
22
22
  print("File uploaded!" if resp else "File cannot be uploaded!")
23
23
  if not resp:
24
- print("File cannot be uploaded!")
25
24
  return
26
25
 
27
26
  # Insert to DB
28
27
  data = {'bucket':bucket, 'key':key}
29
28
  res_insert = self.api_call('load_gaps', method="post", data=data, verify=False)
30
29
  inserted_in_db, not_inserted_in_db = pd.DataFrame(res_insert['inserted_in_db']), pd.DataFrame(res_insert['not_inserted_in_db'])
31
-
30
+
32
31
  return inserted_in_db, not_inserted_in_db
33
32