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.
- {PyQuantimClient-1.0.81 → PyQuantimClient-1.0.82}/PKG-INFO +1 -1
- {PyQuantimClient-1.0.81 → PyQuantimClient-1.0.82}/PyQuantimClient.egg-info/PKG-INFO +1 -1
- {PyQuantimClient-1.0.81 → PyQuantimClient-1.0.82}/setup.py +1 -1
- {PyQuantimClient-1.0.81 → PyQuantimClient-1.0.82}/src/performance.py +3 -4
- {PyQuantimClient-1.0.81 → PyQuantimClient-1.0.82}/PyQuantimClient.egg-info/SOURCES.txt +0 -0
- {PyQuantimClient-1.0.81 → PyQuantimClient-1.0.82}/PyQuantimClient.egg-info/dependency_links.txt +0 -0
- {PyQuantimClient-1.0.81 → PyQuantimClient-1.0.82}/PyQuantimClient.egg-info/top_level.txt +0 -0
- {PyQuantimClient-1.0.81 → PyQuantimClient-1.0.82}/README.md +0 -0
- {PyQuantimClient-1.0.81 → PyQuantimClient-1.0.82}/setup.cfg +0 -0
- {PyQuantimClient-1.0.81 → PyQuantimClient-1.0.82}/src/__init__.py +0 -0
- {PyQuantimClient-1.0.81 → PyQuantimClient-1.0.82}/src/api.py +0 -0
- {PyQuantimClient-1.0.81 → PyQuantimClient-1.0.82}/src/benchmarks.py +0 -0
- {PyQuantimClient-1.0.81 → PyQuantimClient-1.0.82}/src/bi.py +0 -0
- {PyQuantimClient-1.0.81 → PyQuantimClient-1.0.82}/src/data.py +0 -0
- {PyQuantimClient-1.0.81 → PyQuantimClient-1.0.82}/src/energy.py +0 -0
- {PyQuantimClient-1.0.81 → PyQuantimClient-1.0.82}/src/portfolios.py +0 -0
- {PyQuantimClient-1.0.81 → PyQuantimClient-1.0.82}/src/preprocess_co.py +0 -0
- {PyQuantimClient-1.0.81 → PyQuantimClient-1.0.82}/src/risk.py +0 -0
- {PyQuantimClient-1.0.81 → PyQuantimClient-1.0.82}/src/utils.py +0 -0
|
@@ -4,7 +4,7 @@ setup(
|
|
|
4
4
|
name='PyQuantimClient',
|
|
5
5
|
packages=['PyQuantimClient'],
|
|
6
6
|
package_dir={'PyQuantimClient': 'src'},
|
|
7
|
-
version='1.0.
|
|
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
|
|
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,
|
|
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
|
|
|
File without changes
|
{PyQuantimClient-1.0.81 → PyQuantimClient-1.0.82}/PyQuantimClient.egg-info/dependency_links.txt
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|