uploadoss 0.3.1__tar.gz → 0.3.2__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.
Potentially problematic release.
This version of uploadoss might be problematic. Click here for more details.
- uploadoss-0.3.2/PKG-INFO +53 -0
- {uploadoss-0.3.1 → uploadoss-0.3.2}/setup.py +4 -2
- uploadoss-0.3.2/uploadoss.egg-info/PKG-INFO +53 -0
- uploadoss-0.3.1/PKG-INFO +0 -7
- uploadoss-0.3.1/uploadoss.egg-info/PKG-INFO +0 -7
- {uploadoss-0.3.1 → uploadoss-0.3.2}/LICENSE.txt +0 -0
- {uploadoss-0.3.1 → uploadoss-0.3.2}/README.md +0 -0
- {uploadoss-0.3.1 → uploadoss-0.3.2}/setup.cfg +0 -0
- {uploadoss-0.3.1 → uploadoss-0.3.2}/uploadoss/__init__.py +0 -0
- {uploadoss-0.3.1 → uploadoss-0.3.2}/uploadoss/uploadoss.py +0 -0
- {uploadoss-0.3.1 → uploadoss-0.3.2}/uploadoss.egg-info/SOURCES.txt +0 -0
- {uploadoss-0.3.1 → uploadoss-0.3.2}/uploadoss.egg-info/dependency_links.txt +0 -0
- {uploadoss-0.3.1 → uploadoss-0.3.2}/uploadoss.egg-info/requires.txt +0 -0
- {uploadoss-0.3.1 → uploadoss-0.3.2}/uploadoss.egg-info/top_level.txt +0 -0
uploadoss-0.3.2/PKG-INFO
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: uploadoss
|
|
3
|
+
Version: 0.3.2
|
|
4
|
+
Summary: Uploadoss is the general module of uploading database data and local files to the Alibaba Cloud OSS
|
|
5
|
+
Author: Binghe
|
|
6
|
+
Project-URL: Source, https://github.com/binghexmo/uploadoss/
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE.txt
|
|
9
|
+
|
|
10
|
+
# Uploadoss
|
|
11
|
+
Uploadoss is the general module of uploading database data and local files to the Alibaba Cloud OSS
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
download uploadoss-0.1.tar.gz
|
|
16
|
+
https://pypi.org/project/uploadoss/#files
|
|
17
|
+
pip install uploadoss-0.1.tar.gz
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
Some simple things you can do with uploadoss
|
|
21
|
+
```
|
|
22
|
+
#upload local file(Logs, CSV, and their gzip compression) to Alibaba Cloud OSS
|
|
23
|
+
|
|
24
|
+
from uploadoss import uploadoss
|
|
25
|
+
conf_path = 'C:\demo\oss\conf.ini'
|
|
26
|
+
bucket = uploadoss.getossbucket(conf_path)
|
|
27
|
+
# Directory of local files
|
|
28
|
+
local_path = r'C:\\demo\\data\\file\\'
|
|
29
|
+
# The file name in the local directory, also used as the file name on the OSS side
|
|
30
|
+
file_name = 'test1.log.gz'
|
|
31
|
+
# OSS Directory
|
|
32
|
+
oss_path = 'xxx/testlocalfile/'
|
|
33
|
+
result = uploadoss.file_to_oss(bucket,local_path = local_path,file_name = file_name,oss_path = oss_path)
|
|
34
|
+
print('http status: {0}'.format(result.status))
|
|
35
|
+
|
|
36
|
+
# Through a single SQL statement
|
|
37
|
+
|
|
38
|
+
conn = uploadoss.getmysqlconn(conf_path=conf_path)
|
|
39
|
+
#
|
|
40
|
+
sql_text = 'select * from bigdata_demo.event_info limit 1'
|
|
41
|
+
# The file where the SQL query results are stored, also serving as the file name on the OSS side
|
|
42
|
+
file_name = 'sql_text.csv.gz'
|
|
43
|
+
# OSS Directory
|
|
44
|
+
oss_path = 'xxx/testsqltext/dt=20230926/'
|
|
45
|
+
result = uploadoss.mysql_to_oss_table(conn=conn,bucket=bucket,local_path=local_path,file_name=file_name,sql_text=sql_text,oss_path = oss_path)
|
|
46
|
+
print('http status: {0}'.format(result.status))
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# Through a multiple SQL statements,The separator is \001 ,e.g. event_info\001SQL_TEXT
|
|
50
|
+
table_conf_list=r'C:\\demo\\oss\\table_config.txt'
|
|
51
|
+
result = uploadoss.mysql_to_oss_list(conf_path = conf_path,local_path = local_path,oss_dire_path = oss_dire_path,table_list_conf = table_conf_list )
|
|
52
|
+
|
|
53
|
+
```
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
from setuptools import setup, find_packages
|
|
2
|
+
import codecs
|
|
2
3
|
|
|
3
4
|
# with open('README.md') as f:
|
|
4
5
|
# long_description = f.read()
|
|
5
6
|
|
|
6
7
|
setup(
|
|
7
8
|
name='uploadoss',
|
|
8
|
-
version='0.3.
|
|
9
|
+
version='0.3.2',
|
|
9
10
|
author='Binghe',
|
|
10
11
|
description='Uploadoss is the general module of uploading database data and local files to the Alibaba Cloud OSS',
|
|
11
12
|
packages=find_packages(),
|
|
@@ -18,6 +19,7 @@ setup(
|
|
|
18
19
|
project_urls={
|
|
19
20
|
'Source': 'https://github.com/binghexmo/uploadoss/',
|
|
20
21
|
},
|
|
21
|
-
|
|
22
|
+
long_description=(codecs.open("README.md", encoding='utf-8').read()),
|
|
23
|
+
long_description_content_type="text/markdown"
|
|
22
24
|
)
|
|
23
25
|
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: uploadoss
|
|
3
|
+
Version: 0.3.2
|
|
4
|
+
Summary: Uploadoss is the general module of uploading database data and local files to the Alibaba Cloud OSS
|
|
5
|
+
Author: Binghe
|
|
6
|
+
Project-URL: Source, https://github.com/binghexmo/uploadoss/
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE.txt
|
|
9
|
+
|
|
10
|
+
# Uploadoss
|
|
11
|
+
Uploadoss is the general module of uploading database data and local files to the Alibaba Cloud OSS
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
download uploadoss-0.1.tar.gz
|
|
16
|
+
https://pypi.org/project/uploadoss/#files
|
|
17
|
+
pip install uploadoss-0.1.tar.gz
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
Some simple things you can do with uploadoss
|
|
21
|
+
```
|
|
22
|
+
#upload local file(Logs, CSV, and their gzip compression) to Alibaba Cloud OSS
|
|
23
|
+
|
|
24
|
+
from uploadoss import uploadoss
|
|
25
|
+
conf_path = 'C:\demo\oss\conf.ini'
|
|
26
|
+
bucket = uploadoss.getossbucket(conf_path)
|
|
27
|
+
# Directory of local files
|
|
28
|
+
local_path = r'C:\\demo\\data\\file\\'
|
|
29
|
+
# The file name in the local directory, also used as the file name on the OSS side
|
|
30
|
+
file_name = 'test1.log.gz'
|
|
31
|
+
# OSS Directory
|
|
32
|
+
oss_path = 'xxx/testlocalfile/'
|
|
33
|
+
result = uploadoss.file_to_oss(bucket,local_path = local_path,file_name = file_name,oss_path = oss_path)
|
|
34
|
+
print('http status: {0}'.format(result.status))
|
|
35
|
+
|
|
36
|
+
# Through a single SQL statement
|
|
37
|
+
|
|
38
|
+
conn = uploadoss.getmysqlconn(conf_path=conf_path)
|
|
39
|
+
#
|
|
40
|
+
sql_text = 'select * from bigdata_demo.event_info limit 1'
|
|
41
|
+
# The file where the SQL query results are stored, also serving as the file name on the OSS side
|
|
42
|
+
file_name = 'sql_text.csv.gz'
|
|
43
|
+
# OSS Directory
|
|
44
|
+
oss_path = 'xxx/testsqltext/dt=20230926/'
|
|
45
|
+
result = uploadoss.mysql_to_oss_table(conn=conn,bucket=bucket,local_path=local_path,file_name=file_name,sql_text=sql_text,oss_path = oss_path)
|
|
46
|
+
print('http status: {0}'.format(result.status))
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# Through a multiple SQL statements,The separator is \001 ,e.g. event_info\001SQL_TEXT
|
|
50
|
+
table_conf_list=r'C:\\demo\\oss\\table_config.txt'
|
|
51
|
+
result = uploadoss.mysql_to_oss_list(conf_path = conf_path,local_path = local_path,oss_dire_path = oss_dire_path,table_list_conf = table_conf_list )
|
|
52
|
+
|
|
53
|
+
```
|
uploadoss-0.3.1/PKG-INFO
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: uploadoss
|
|
3
|
-
Version: 0.3.1
|
|
4
|
-
Summary: Uploadoss is the general module of uploading database data and local files to the Alibaba Cloud OSS
|
|
5
|
-
Author: Binghe
|
|
6
|
-
Project-URL: Source, https://github.com/binghexmo/uploadoss/
|
|
7
|
-
License-File: LICENSE.txt
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: uploadoss
|
|
3
|
-
Version: 0.3.1
|
|
4
|
-
Summary: Uploadoss is the general module of uploading database data and local files to the Alibaba Cloud OSS
|
|
5
|
-
Author: Binghe
|
|
6
|
-
Project-URL: Source, https://github.com/binghexmo/uploadoss/
|
|
7
|
-
License-File: LICENSE.txt
|
|
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
|