syneto_api 0.2.0__tar.gz → 0.2.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.
@@ -0,0 +1,64 @@
1
+ Metadata-Version: 2.1
2
+ Name: syneto-api
3
+ Version: 0.2.1
4
+ Summary: Syneto Client API library
5
+ Home-page: https://github.com/SynetoNet/syneto-api
6
+ License: Proprietary
7
+ Author: Your Name
8
+ Author-email: you@example.com
9
+ Requires-Python: >=3.6,<4.0
10
+ Classifier: License :: Other/Proprietary License
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.6
13
+ Classifier: Programming Language :: Python :: 3.7
14
+ Classifier: Programming Language :: Python :: 3.8
15
+ Requires-Dist: python-dotenv (>=0.16.0,<0.17.0)
16
+ Requires-Dist: requests[secure] (>=2.25.1,<3.0.0)
17
+ Project-URL: Repository, https://github.com/SynetoNet/syneto-api
18
+ Description-Content-Type: text/markdown
19
+
20
+ # Syneto API
21
+
22
+ Syneto Client API library: authentication, storage, virtualization and protection
23
+
24
+ # Installation
25
+
26
+ ```
27
+ $ pip install syneto-api
28
+ ```
29
+
30
+ # Basic Usage
31
+
32
+ ```
33
+ from syneto_api import Authentication, Virtualization, Storage, Protection
34
+
35
+ auth_api = Authentication(base_url="https://syneto-instance-ip-address/api/auth", insecure_ssl=True)
36
+ response = auth_api.login(username="admin", password="admin")
37
+ jwt = response['jwt']
38
+
39
+ virt_api = Virtualization(base_url="https://syneto-instance-ip-address/api/virtualization", insecure_ssl=True)
40
+ virt_api.set_auth_jwt(jwt)
41
+ print(virt_api.get_vms())
42
+
43
+ storage_api = Storage(base_url="https://syneto-instance-ip-address/api/storage", insecure_ssl=True)
44
+ storage_api.set_auth_jwt(jwt)
45
+ print(storage_api.get_pools())
46
+ ```
47
+
48
+ # Environment Variables
49
+
50
+ For conveninence, the base urls for the api endpoints are also accepted as environment variables, please see below.
51
+
52
+ ```
53
+ AUTH_SERVICE=https://syneto-instance-ip-address/api/auth
54
+ VIRTUALIZATION_SERVICE=https://syneto-instance-ip-address/api/virtualization
55
+ STORAGE_SERVICE=https://syneto-instance-ip-address/api/storage
56
+ PROTECTION_SERVICE=https://syneto-instance-ip-address/api/protection
57
+ ```
58
+
59
+ If you are using self-signed SSL certificates, set the following env. so that the http request library does not perform ssl verification.
60
+
61
+ ```
62
+ ALLOW_INSECURE_SSL=True
63
+ ```
64
+
@@ -0,0 +1,44 @@
1
+ # Syneto API
2
+
3
+ Syneto Client API library: authentication, storage, virtualization and protection
4
+
5
+ # Installation
6
+
7
+ ```
8
+ $ pip install syneto-api
9
+ ```
10
+
11
+ # Basic Usage
12
+
13
+ ```
14
+ from syneto_api import Authentication, Virtualization, Storage, Protection
15
+
16
+ auth_api = Authentication(base_url="https://syneto-instance-ip-address/api/auth", insecure_ssl=True)
17
+ response = auth_api.login(username="admin", password="admin")
18
+ jwt = response['jwt']
19
+
20
+ virt_api = Virtualization(base_url="https://syneto-instance-ip-address/api/virtualization", insecure_ssl=True)
21
+ virt_api.set_auth_jwt(jwt)
22
+ print(virt_api.get_vms())
23
+
24
+ storage_api = Storage(base_url="https://syneto-instance-ip-address/api/storage", insecure_ssl=True)
25
+ storage_api.set_auth_jwt(jwt)
26
+ print(storage_api.get_pools())
27
+ ```
28
+
29
+ # Environment Variables
30
+
31
+ For conveninence, the base urls for the api endpoints are also accepted as environment variables, please see below.
32
+
33
+ ```
34
+ AUTH_SERVICE=https://syneto-instance-ip-address/api/auth
35
+ VIRTUALIZATION_SERVICE=https://syneto-instance-ip-address/api/virtualization
36
+ STORAGE_SERVICE=https://syneto-instance-ip-address/api/storage
37
+ PROTECTION_SERVICE=https://syneto-instance-ip-address/api/protection
38
+ ```
39
+
40
+ If you are using self-signed SSL certificates, set the following env. so that the http request library does not perform ssl verification.
41
+
42
+ ```
43
+ ALLOW_INSECURE_SSL=True
44
+ ```
@@ -1,9 +1,12 @@
1
1
  [tool.poetry]
2
2
  name = "syneto_api"
3
- version = "0.2.0"
3
+ version = "0.2.1"
4
4
  description = "Syneto Client API library"
5
5
  authors = ["Your Name <you@example.com>"]
6
6
  license = "Proprietary"
7
+ homepage = "https://github.com/SynetoNet/syneto-api"
8
+ repository = "https://github.com/SynetoNet/syneto-api"
9
+ readme = "README.md"
7
10
 
8
11
  [tool.poetry.dependencies]
9
12
  python = "^3.6"
@@ -0,0 +1,34 @@
1
+ # -*- coding: utf-8 -*-
2
+ from setuptools import setup
3
+
4
+ package_dir = \
5
+ {'': 'src'}
6
+
7
+ packages = \
8
+ ['syneto_api']
9
+
10
+ package_data = \
11
+ {'': ['*']}
12
+
13
+ install_requires = \
14
+ ['python-dotenv>=0.16.0,<0.17.0', 'requests[secure]>=2.25.1,<3.0.0']
15
+
16
+ setup_kwargs = {
17
+ 'name': 'syneto-api',
18
+ 'version': '0.2.1',
19
+ 'description': 'Syneto Client API library',
20
+ 'long_description': '# Syneto API\n\nSyneto Client API library: authentication, storage, virtualization and protection\n\n# Installation\n\n```\n$ pip install syneto-api\n```\n\n# Basic Usage\n\n```\nfrom syneto_api import Authentication, Virtualization, Storage, Protection\n\nauth_api = Authentication(base_url="https://syneto-instance-ip-address/api/auth", insecure_ssl=True)\nresponse = auth_api.login(username="admin", password="admin")\njwt = response[\'jwt\']\n\nvirt_api = Virtualization(base_url="https://syneto-instance-ip-address/api/virtualization", insecure_ssl=True)\nvirt_api.set_auth_jwt(jwt)\nprint(virt_api.get_vms())\n\nstorage_api = Storage(base_url="https://syneto-instance-ip-address/api/storage", insecure_ssl=True)\nstorage_api.set_auth_jwt(jwt)\nprint(storage_api.get_pools())\n```\n\n# Environment Variables\n\nFor conveninence, the base urls for the api endpoints are also accepted as environment variables, please see below.\n\n```\nAUTH_SERVICE=https://syneto-instance-ip-address/api/auth\nVIRTUALIZATION_SERVICE=https://syneto-instance-ip-address/api/virtualization\nSTORAGE_SERVICE=https://syneto-instance-ip-address/api/storage\nPROTECTION_SERVICE=https://syneto-instance-ip-address/api/protection\n```\n\nIf you are using self-signed SSL certificates, set the following env. so that the http request library does not perform ssl verification. \n\n```\nALLOW_INSECURE_SSL=True\n```\n',
21
+ 'author': 'Your Name',
22
+ 'author_email': 'you@example.com',
23
+ 'maintainer': None,
24
+ 'maintainer_email': None,
25
+ 'url': 'https://github.com/SynetoNet/syneto-api',
26
+ 'package_dir': package_dir,
27
+ 'packages': packages,
28
+ 'package_data': package_data,
29
+ 'install_requires': install_requires,
30
+ 'python_requires': '>=3.6,<4.0',
31
+ }
32
+
33
+
34
+ setup(**setup_kwargs)
syneto_api-0.2.0/PKG-INFO DELETED
@@ -1,15 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: syneto-api
3
- Version: 0.2.0
4
- Summary: Syneto Client API library
5
- License: Proprietary
6
- Author: Your Name
7
- Author-email: you@example.com
8
- Requires-Python: >=3.6,<4.0
9
- Classifier: License :: Other/Proprietary License
10
- Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: 3.6
12
- Classifier: Programming Language :: Python :: 3.7
13
- Classifier: Programming Language :: Python :: 3.8
14
- Requires-Dist: python-dotenv (>=0.16.0,<0.17.0)
15
- Requires-Dist: requests[secure] (>=2.25.1,<3.0.0)
syneto_api-0.2.0/setup.py DELETED
@@ -1,34 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- from setuptools import setup
3
-
4
- package_dir = \
5
- {'': 'src'}
6
-
7
- packages = \
8
- ['syneto_api']
9
-
10
- package_data = \
11
- {'': ['*']}
12
-
13
- install_requires = \
14
- ['python-dotenv>=0.16.0,<0.17.0', 'requests[secure]>=2.25.1,<3.0.0']
15
-
16
- setup_kwargs = {
17
- 'name': 'syneto-api',
18
- 'version': '0.2.0',
19
- 'description': 'Syneto Client API library',
20
- 'long_description': None,
21
- 'author': 'Your Name',
22
- 'author_email': 'you@example.com',
23
- 'maintainer': None,
24
- 'maintainer_email': None,
25
- 'url': None,
26
- 'package_dir': package_dir,
27
- 'packages': packages,
28
- 'package_data': package_data,
29
- 'install_requires': install_requires,
30
- 'python_requires': '>=3.6,<4.0',
31
- }
32
-
33
-
34
- setup(**setup_kwargs)