accli 0.1__tar.gz → 0.1.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.
accli-0.1.1/PKG-INFO ADDED
@@ -0,0 +1,35 @@
1
+ Metadata-Version: 2.1
2
+ Name: accli
3
+ Version: 0.1.1
4
+ Summary: IIASA Accelerator Client
5
+ Author-email: Wrufesh S <wrufesh@gmail.com>
6
+ License: Copyright (c) 2018 The Python Packaging Authority
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in all
16
+ copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ SOFTWARE.
25
+ Project-URL: Homepage, https://github.com/iiasa/accli
26
+ Project-URL: Bug Tracker, https://github.com/iiasa/accli/issues
27
+ Classifier: Programming Language :: Python :: 3
28
+ Classifier: License :: OSI Approved :: MIT License
29
+ Classifier: Operating System :: OS Independent
30
+ Requires-Python: >=3.7
31
+ Description-Content-Type: text/markdown
32
+ License-File: LICENSE
33
+ Requires-Dist: urllib3>=2.0.4
34
+
35
+ ## Accelerator python client
@@ -3,13 +3,20 @@ import base64
3
3
  import urllib3
4
4
 
5
5
  class AcceleratorProjectService:
6
- def __init__(self, project_slug, user_token):
7
- self.project_slug = project_slug
6
+ def __init__(
7
+ self,
8
+ user_token,
9
+ cli_base_url='http://accelerator-api/v1/acli',
10
+ verify_cert=True
11
+ ):
8
12
  self.user_token = user_token
9
13
 
10
- self.http_client = urllib3.poolmanager.PoolManager(cert_reqs="CERT_NONE", num_pools=1)
14
+ if verify_cert:
15
+ self.http_client = urllib3.poolmanager.PoolManager(num_pools=1)
16
+ else:
17
+ self.http_client = urllib3.poolmanager.PoolManager(cert_reqs="CERT_NONE", num_pools=1)
11
18
 
12
- self.cli_base_url = "http://accelerator-api/v1/acli"
19
+ self.cli_base_url = cli_base_url
13
20
  self.common_request_headers = {
14
21
  'x-authorization': user_token
15
22
  }
@@ -0,0 +1,35 @@
1
+ Metadata-Version: 2.1
2
+ Name: accli
3
+ Version: 0.1.1
4
+ Summary: IIASA Accelerator Client
5
+ Author-email: Wrufesh S <wrufesh@gmail.com>
6
+ License: Copyright (c) 2018 The Python Packaging Authority
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in all
16
+ copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ SOFTWARE.
25
+ Project-URL: Homepage, https://github.com/iiasa/accli
26
+ Project-URL: Bug Tracker, https://github.com/iiasa/accli/issues
27
+ Classifier: Programming Language :: Python :: 3
28
+ Classifier: License :: OSI Approved :: MIT License
29
+ Classifier: Operating System :: OS Independent
30
+ Requires-Python: >=3.7
31
+ Description-Content-Type: text/markdown
32
+ License-File: LICENSE
33
+ Requires-Dist: urllib3>=2.0.4
34
+
35
+ ## Accelerator python client
@@ -1,6 +1,6 @@
1
1
  LICENSE
2
2
  README.md
3
- setup.py
3
+ pyproject.toml
4
4
  accli/AcceleratorProjectService.py
5
5
  accli/__init__.py
6
6
  accli/enums.py
@@ -0,0 +1,27 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "accli"
7
+ version = "0.1.1"
8
+ authors = [
9
+ { name="Wrufesh S", email="wrufesh@gmail.com" },
10
+ ]
11
+ description = "IIASA Accelerator Client"
12
+ readme = "README.md"
13
+ license = {file = "LICENSE"}
14
+ requires-python = ">=3.7"
15
+ dependencies = ['urllib3>=2.0.4']
16
+ classifiers = [
17
+ "Programming Language :: Python :: 3",
18
+ "License :: OSI Approved :: MIT License",
19
+ "Operating System :: OS Independent",
20
+ ]
21
+
22
+ [tool.setuptools]
23
+ packages = ['accli']
24
+
25
+ [project.urls]
26
+ "Homepage" = "https://github.com/iiasa/accli"
27
+ "Bug Tracker" = "https://github.com/iiasa/accli/issues"
accli-0.1/PKG-INFO DELETED
@@ -1,9 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: accli
3
- Version: 0.1
4
- Summary: IIASA Accelerator python client
5
- Author: Wrufesh S
6
- Author-email: wrufesh@gmail.com
7
- Requires-Python: >=3.6
8
- License-File: LICENSE
9
- Requires-Dist: urllib3>=2.0.4
@@ -1,9 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: accli
3
- Version: 0.1
4
- Summary: IIASA Accelerator python client
5
- Author: Wrufesh S
6
- Author-email: wrufesh@gmail.com
7
- Requires-Python: >=3.6
8
- License-File: LICENSE
9
- Requires-Dist: urllib3>=2.0.4
accli-0.1/setup.py DELETED
@@ -1,11 +0,0 @@
1
- from distutils.core import setup
2
- setup(
3
- name='accli',
4
- version='0.1',
5
- description='IIASA Accelerator python client',
6
- author='Wrufesh S',
7
- author_email='wrufesh@gmail.com',
8
- packages=['accli'],
9
- install_requires=['urllib3>=2.0.4'],
10
- python_requires='>=3.6',
11
- )
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes