aimodelshare 0.1.9__py3-none-any.whl → 0.1.12__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 aimodelshare might be problematic. Click here for more details.
- aimodelshare/api.py +1 -1
- aimodelshare/aws.py +1 -0
- aimodelshare/base_image.py +1 -1
- aimodelshare/containerisation.py +1 -1
- {aimodelshare-0.1.9.dist-info → aimodelshare-0.1.12.dist-info}/METADATA +1 -1
- {aimodelshare-0.1.9.dist-info → aimodelshare-0.1.12.dist-info}/RECORD +9 -9
- {aimodelshare-0.1.9.dist-info → aimodelshare-0.1.12.dist-info}/WHEEL +1 -1
- {aimodelshare-0.1.9.dist-info → aimodelshare-0.1.12.dist-info}/LICENSE +0 -0
- {aimodelshare-0.1.9.dist-info → aimodelshare-0.1.12.dist-info}/top_level.txt +0 -0
aimodelshare/api.py
CHANGED
|
@@ -57,7 +57,7 @@ class create_prediction_api_class():
|
|
|
57
57
|
self.pyspark_support = pyspark_support
|
|
58
58
|
self.region = os.environ.get("AWS_REGION")
|
|
59
59
|
self.bucket_name = os.environ.get("BUCKET_NAME")
|
|
60
|
-
self.python_runtime = 'python3.
|
|
60
|
+
self.python_runtime = 'python3.8'
|
|
61
61
|
#####
|
|
62
62
|
|
|
63
63
|
self.model_type = self.model_type.lower()
|
aimodelshare/aws.py
CHANGED
|
@@ -13,6 +13,7 @@ def set_credentials(credential_file=None, type="submit_model", apiurl="apiurl",
|
|
|
13
13
|
from aimodelshare.modeluser import get_jwt_token, create_user_getkeyandpassword
|
|
14
14
|
if all([credential_file==None, type=="submit_model"]):
|
|
15
15
|
set_credentials_public(type="submit_model", apiurl=apiurl)
|
|
16
|
+
os.environ["AWS_TOKEN"]=get_aws_token()
|
|
16
17
|
elif all([credential_file==None, type=="deploy_model", cloud=="model_share"]):
|
|
17
18
|
set_credentials_public_aimscloud(credential_file=None, type="deploy_model", apiurl=apiurl)
|
|
18
19
|
os.environ["cloud_location"] = cloud
|
aimodelshare/base_image.py
CHANGED
|
@@ -8,7 +8,7 @@ import zipfile
|
|
|
8
8
|
import importlib.resources as pkg_resources
|
|
9
9
|
from string import Template
|
|
10
10
|
|
|
11
|
-
def lambda_using_base_image(account_id, region, session, project_name, model_dir, requirements_file_path, apiid, memory_size='3000', timeout='90', python_version='3.
|
|
11
|
+
def lambda_using_base_image(account_id, region, session, project_name, model_dir, requirements_file_path, apiid, memory_size='3000', timeout='90', python_version='3.8'):
|
|
12
12
|
|
|
13
13
|
codebuild_bucket_name=os.environ.get("BUCKET_NAME") # s3 bucket name to create #TODO: use same bucket and subfolder we used previously to store this data
|
|
14
14
|
#Why? AWS limits users to 100 total buckets! Our old code only creates one per user per acct.
|
aimodelshare/containerisation.py
CHANGED
|
@@ -27,7 +27,7 @@ def create_bucket(s3_client, bucket_name, region):
|
|
|
27
27
|
)
|
|
28
28
|
return response
|
|
29
29
|
|
|
30
|
-
def deploy_container(account_id, region, session, project_name, model_dir, requirements_file_path, apiid, memory_size='1024', timeout='120', python_version='3.
|
|
30
|
+
def deploy_container(account_id, region, session, project_name, model_dir, requirements_file_path, apiid, memory_size='1024', timeout='120', python_version='3.8', pyspark_support=False):
|
|
31
31
|
|
|
32
32
|
codebuild_bucket_name=os.environ.get("BUCKET_NAME") # s3 bucket name to create #TODO: use same bucket and subfolder we used previously to store this data
|
|
33
33
|
# Why? AWS limits users to 100 total buckets! Our old code only creates one per user per acct.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: aimodelshare
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.12
|
|
4
4
|
Summary: Deploy locally saved machine learning models to a live rest API and web-dashboard. Share it with the world via modelshare.org
|
|
5
5
|
Home-page: https://www.modelshare.org
|
|
6
6
|
Author: Michael Parrott
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
aimodelshare/README.md,sha256=_OMdUIeIYZnpFlKdafM1KNWaANO2nWdx0QpLE_ZC-Qs,2014
|
|
2
2
|
aimodelshare/__init__.py,sha256=CS0iFxgAic21gBcQE6NSZ-D_ElHw80_A3OWrEYo9Dks,539
|
|
3
3
|
aimodelshare/aimsonnx.py,sha256=bHjp2iEBSGKzfScDX4wn9I7lR2wPSMpdgi8qmroz4nY,69282
|
|
4
|
-
aimodelshare/api.py,sha256=
|
|
5
|
-
aimodelshare/aws.py,sha256=
|
|
4
|
+
aimodelshare/api.py,sha256=tt1ETsM7D96igbz9Qdi6OXNM41LbUDPqBc3BFytmb3c,34935
|
|
5
|
+
aimodelshare/aws.py,sha256=jn99R9-N77Qac-_eYm-LaCQUPd-RnE7oVULm9rh-3RY,15232
|
|
6
6
|
aimodelshare/aws_client.py,sha256=Ce19iwf69BwpuyyJlVN8z1da3c5jf93svsTgx1OWhaA,6784
|
|
7
|
-
aimodelshare/base_image.py,sha256=
|
|
7
|
+
aimodelshare/base_image.py,sha256=NTWk9QRcaV7pL5_sHuvZQO92GVvvzY3TqKCtGXgz2e8,4825
|
|
8
8
|
aimodelshare/bucketpolicy.py,sha256=KLyl-BLBiFdTYzCK7tJV8NBJHBKWRlF3_msSTGwgaQQ,3055
|
|
9
|
-
aimodelshare/containerisation.py,sha256=
|
|
9
|
+
aimodelshare/containerisation.py,sha256=K_icaMzv5dw-mLq9VTTG5xdZuxE8sZr-nCu2QnsJwPs,8758
|
|
10
10
|
aimodelshare/containerization.py,sha256=Sa9GWxmz1qoDZ3lUQjFa1ctQUSs666I7-Yf0YU3We1U,29609
|
|
11
11
|
aimodelshare/custom_eval_metrics.py,sha256=NghFslmLDyvIkZ27yZhFIItLbzHnNb0bJ2ZO7cqkucw,3170
|
|
12
12
|
aimodelshare/deploy_custom_lambda.py,sha256=HFxxIYI2JrZwPrjqKgFkj6KaCeRBOn6tf9e2fqBUl2U,11045
|
|
@@ -143,8 +143,8 @@ aimodelshare/sam/template.txt,sha256=JKSvEOZNaaLalHSx7r9psJg_6LLCb0XLAYi1-jYPu3M
|
|
|
143
143
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
144
144
|
tests/test_aimsonnx.py,sha256=-GOF1_qXGQaMxHyqK0GPg7dD1meE-S7CZea4pLmBDTk,3906
|
|
145
145
|
tests/test_playground.py,sha256=vdFWPRrZNQ2poiBOoN3l7HsXB5yc3p3rrrclNYJHnaw,24574
|
|
146
|
-
aimodelshare-0.1.
|
|
147
|
-
aimodelshare-0.1.
|
|
148
|
-
aimodelshare-0.1.
|
|
149
|
-
aimodelshare-0.1.
|
|
150
|
-
aimodelshare-0.1.
|
|
146
|
+
aimodelshare-0.1.12.dist-info/LICENSE,sha256=JXBYLriXYgTloZs-9CJPZY76dqkuDT5df_HghMnljx8,1134
|
|
147
|
+
aimodelshare-0.1.12.dist-info/METADATA,sha256=WJ3BIvuTqYR5ir0KS_71x6tye9HNm6ArUaV2CL7ZGwY,3304
|
|
148
|
+
aimodelshare-0.1.12.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
149
|
+
aimodelshare-0.1.12.dist-info/top_level.txt,sha256=2KJgeHQ0BmZuilB75J203i7W4vri6CON2kdbwk9BNpU,19
|
|
150
|
+
aimodelshare-0.1.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|