ae-cloud-storage 0.3.2__tar.gz → 0.3.3__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.
- {ae_cloud_storage-0.3.2/ae_cloud_storage.egg-info → ae_cloud_storage-0.3.3}/PKG-INFO +5 -5
- {ae_cloud_storage-0.3.2 → ae_cloud_storage-0.3.3}/README.md +4 -4
- {ae_cloud_storage-0.3.2 → ae_cloud_storage-0.3.3}/ae/cloud_storage.py +6 -8
- {ae_cloud_storage-0.3.2 → ae_cloud_storage-0.3.3/ae_cloud_storage.egg-info}/PKG-INFO +5 -5
- {ae_cloud_storage-0.3.2 → ae_cloud_storage-0.3.3}/tests/test_cloud_storage.py +1 -1
- {ae_cloud_storage-0.3.2 → ae_cloud_storage-0.3.3}/LICENSE.md +0 -0
- {ae_cloud_storage-0.3.2 → ae_cloud_storage-0.3.3}/ae_cloud_storage.egg-info/SOURCES.txt +0 -0
- {ae_cloud_storage-0.3.2 → ae_cloud_storage-0.3.3}/ae_cloud_storage.egg-info/dependency_links.txt +0 -0
- {ae_cloud_storage-0.3.2 → ae_cloud_storage-0.3.3}/ae_cloud_storage.egg-info/requires.txt +0 -0
- {ae_cloud_storage-0.3.2 → ae_cloud_storage-0.3.3}/ae_cloud_storage.egg-info/top_level.txt +0 -0
- {ae_cloud_storage-0.3.2 → ae_cloud_storage-0.3.3}/ae_cloud_storage.egg-info/zip-safe +0 -0
- {ae_cloud_storage-0.3.2 → ae_cloud_storage-0.3.3}/setup.cfg +0 -0
- {ae_cloud_storage-0.3.2 → ae_cloud_storage-0.3.3}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ae_cloud_storage
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
4
4
|
Summary: ae namespace module portion cloud_storage: distribute files to and retrieve them from cloud storage hosts.
|
|
5
5
|
Home-page: https://gitlab.com/ae-group/ae_cloud_storage
|
|
6
6
|
Author: AndiEcker
|
|
@@ -60,17 +60,17 @@ Requires-Dist: twine; extra == "tests"
|
|
|
60
60
|
|
|
61
61
|
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae V0.3.94 -->
|
|
62
62
|
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.tpl_namespace_root V0.3.14 -->
|
|
63
|
-
# cloud_storage 0.3.
|
|
63
|
+
# cloud_storage 0.3.3
|
|
64
64
|
|
|
65
65
|
[](
|
|
66
66
|
https://gitlab.com/ae-group/ae_cloud_storage)
|
|
67
67
|
[](
|
|
69
|
+
https://gitlab.com/ae-group/ae_cloud_storage/-/tree/release0.3.2)
|
|
70
70
|
[](
|
|
71
71
|
https://pypi.org/project/ae-cloud-storage/#history)
|
|
72
72
|
|
|
73
|
-
>ae_cloud_storage module 0.3.
|
|
73
|
+
>ae_cloud_storage module 0.3.3.
|
|
74
74
|
|
|
75
75
|
[](
|
|
76
76
|
https://ae-group.gitlab.io/ae_cloud_storage/coverage/index.html)
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae V0.3.94 -->
|
|
2
2
|
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.tpl_namespace_root V0.3.14 -->
|
|
3
|
-
# cloud_storage 0.3.
|
|
3
|
+
# cloud_storage 0.3.3
|
|
4
4
|
|
|
5
5
|
[](
|
|
6
6
|
https://gitlab.com/ae-group/ae_cloud_storage)
|
|
7
7
|
[](
|
|
9
|
+
https://gitlab.com/ae-group/ae_cloud_storage/-/tree/release0.3.2)
|
|
10
10
|
[](
|
|
11
11
|
https://pypi.org/project/ae-cloud-storage/#history)
|
|
12
12
|
|
|
13
|
-
>ae_cloud_storage module 0.3.
|
|
13
|
+
>ae_cloud_storage module 0.3.3.
|
|
14
14
|
|
|
15
15
|
[](
|
|
16
16
|
https://ae-group.gitlab.io/ae_cloud_storage/coverage/index.html)
|
|
@@ -33,7 +33,7 @@ from googleapiclient.http import MediaFileUpload, MediaIoBaseDownload
|
|
|
33
33
|
from ae.base import os_path_basename, os_path_isfile, os_path_join, read_file, ErrorMsgMixin # type: ignore
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
__version__ = '0.3.
|
|
36
|
+
__version__ = '0.3.3'
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
_registered_csh_classes = {} #: cloud storage class ids map to their related api classes, used by :func:`csh_api_class`
|
|
@@ -83,8 +83,8 @@ class CshApiBase(ErrorMsgMixin, ABC):
|
|
|
83
83
|
def csh_api_class(csh_id: str) -> Type[CshApiBase]:
|
|
84
84
|
""" determine from the specified cloud storage host id the associated api class
|
|
85
85
|
|
|
86
|
-
:param csh_id:
|
|
87
|
-
:return:
|
|
86
|
+
:param csh_id: id of the cloud storage api class.
|
|
87
|
+
:return: cloud storage api class if registered/declared, else the abstract class CshApiClass.
|
|
88
88
|
"""
|
|
89
89
|
return _registered_csh_classes.get(csh_id, CshApiBase)
|
|
90
90
|
|
|
@@ -107,10 +107,8 @@ class DigiApi(CshApiBase):
|
|
|
107
107
|
self.base_url = 'https://digistorage.es'
|
|
108
108
|
self.session = requests.Session()
|
|
109
109
|
token = self.session.get(self.base_url + '/token',
|
|
110
|
-
headers={
|
|
111
|
-
|
|
112
|
-
'X-Koofr-Password': password
|
|
113
|
-
}).headers['X-Koofr-Token']
|
|
110
|
+
headers={'X-Koofr-Email': email, 'X-Koofr-Password': password},
|
|
111
|
+
).headers['X-Koofr-Token']
|
|
114
112
|
self.session.headers['Authorization'] = 'Token ' + token
|
|
115
113
|
|
|
116
114
|
api_prefix = '/api/v2/mounts'
|
|
@@ -234,7 +232,7 @@ class DigiApi(CshApiBase):
|
|
|
234
232
|
self.session.close()
|
|
235
233
|
|
|
236
234
|
|
|
237
|
-
class GoodriveApi(CshApiBase
|
|
235
|
+
class GoodriveApi(CshApiBase):
|
|
238
236
|
""" upload, update, download and delete files from a Google Drive.
|
|
239
237
|
|
|
240
238
|
to prepare Google Drive host api instance (root folder and authentication), create in your console (at
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ae_cloud_storage
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
4
4
|
Summary: ae namespace module portion cloud_storage: distribute files to and retrieve them from cloud storage hosts.
|
|
5
5
|
Home-page: https://gitlab.com/ae-group/ae_cloud_storage
|
|
6
6
|
Author: AndiEcker
|
|
@@ -60,17 +60,17 @@ Requires-Dist: twine; extra == "tests"
|
|
|
60
60
|
|
|
61
61
|
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae V0.3.94 -->
|
|
62
62
|
<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.tpl_namespace_root V0.3.14 -->
|
|
63
|
-
# cloud_storage 0.3.
|
|
63
|
+
# cloud_storage 0.3.3
|
|
64
64
|
|
|
65
65
|
[](
|
|
66
66
|
https://gitlab.com/ae-group/ae_cloud_storage)
|
|
67
67
|
[](
|
|
69
|
+
https://gitlab.com/ae-group/ae_cloud_storage/-/tree/release0.3.2)
|
|
70
70
|
[](
|
|
71
71
|
https://pypi.org/project/ae-cloud-storage/#history)
|
|
72
72
|
|
|
73
|
-
>ae_cloud_storage module 0.3.
|
|
73
|
+
>ae_cloud_storage module 0.3.3.
|
|
74
74
|
|
|
75
75
|
[](
|
|
76
76
|
https://ae-group.gitlab.io/ae_cloud_storage/coverage/index.html)
|
|
@@ -11,7 +11,7 @@ from ae.cloud_storage import DigiApi, GoodriveApi, csh_api_class
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
load_dotenvs()
|
|
14
|
-
tst_digi_root_folder = os.environ.get('
|
|
14
|
+
tst_digi_root_folder = os.environ.get('TEST_DIGI_ROOT_FOLDER_PATH')
|
|
15
15
|
tst_digi_email = os.environ.get('TEST_DIGI_API_EMAIL')
|
|
16
16
|
tst_digi_password = os.environ.get('TEST_DIGI_API_PASSWORD')
|
|
17
17
|
|
|
File without changes
|
|
File without changes
|
{ae_cloud_storage-0.3.2 → ae_cloud_storage-0.3.3}/ae_cloud_storage.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|