oafuncs 0.0.65__py2.py3-none-any.whl → 0.0.67__py2.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.
- oafuncs/oa_down/hycom_3hourly.py +222 -312
- oafuncs/oa_down/hycom_3hourly_20241130.py +1232 -0
- oafuncs/oa_tool/email.py +8 -4
- {oafuncs-0.0.65.dist-info → oafuncs-0.0.67.dist-info}/METADATA +1 -1
- {oafuncs-0.0.65.dist-info → oafuncs-0.0.67.dist-info}/RECORD +8 -7
- {oafuncs-0.0.65.dist-info → oafuncs-0.0.67.dist-info}/LICENSE.txt +0 -0
- {oafuncs-0.0.65.dist-info → oafuncs-0.0.67.dist-info}/WHEEL +0 -0
- {oafuncs-0.0.65.dist-info → oafuncs-0.0.67.dist-info}/top_level.txt +0 -0
oafuncs/oa_tool/email.py
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
Author: Liu Kun && 16031215@qq.com
|
5
5
|
Date: 2024-11-21 09:47:41
|
6
6
|
LastEditors: Liu Kun && 16031215@qq.com
|
7
|
-
LastEditTime: 2024-11-
|
8
|
-
FilePath: \\Python\\My_Funcs\\OAFuncs\\
|
7
|
+
LastEditTime: 2024-11-29 20:54:43
|
8
|
+
FilePath: \\Python\\My_Funcs\\OAFuncs\\oafuncs\\oa_tool\\email.py
|
9
9
|
Description:
|
10
10
|
EditPlatform: vscode
|
11
11
|
ComputerInfo: XPS 15 9510
|
@@ -88,7 +88,7 @@ def _send_message(title, content, msg_to):
|
|
88
88
|
print('发送内容为:\n{}\n\n'.format(content))
|
89
89
|
|
90
90
|
|
91
|
-
def send(title='Title', content=
|
91
|
+
def send(title='Title', content=None, send_to='16031215@qq.com'):
|
92
92
|
'''
|
93
93
|
Description: 发送邮件
|
94
94
|
|
@@ -103,7 +103,11 @@ def send(title='Title', content='Content', send_to='16031215@qq.com'):
|
|
103
103
|
Example:
|
104
104
|
send(title='Title', content='Content', '123@qq.com')
|
105
105
|
'''
|
106
|
-
|
106
|
+
if content is None:
|
107
|
+
# 避免发送空邮件,或有人误调用
|
108
|
+
return
|
109
|
+
else:
|
110
|
+
_send_message(title, content, send_to)
|
107
111
|
|
108
112
|
|
109
113
|
if __name__ == "__main__":
|
@@ -7,7 +7,8 @@ oafuncs/oa_help.py,sha256=ppNktmtNzs15R20MD1bM7yImlTQ_ngMwvoIglePOKXA,1000
|
|
7
7
|
oafuncs/oa_nc.py,sha256=ALAYfqDy5lbUNJsTU29j6ZWkM4wgqQU3p2Fxn5pkvsQ,12102
|
8
8
|
oafuncs/oa_python.py,sha256=XPTP3o7zTFzfJR_YhsKfQksa3bSYwXsne9YxlJplCEA,3994
|
9
9
|
oafuncs/oa_down/__init__.py,sha256=a6rgxHQi8spvlI-TaVEqnrDNhYsKm5_IQf7ckAZ8U4w,603
|
10
|
-
oafuncs/oa_down/hycom_3hourly.py,sha256=
|
10
|
+
oafuncs/oa_down/hycom_3hourly.py,sha256=KlmIhnXNICvqixPrJmHGx1mh9SjVEmO2zSzyzPm28nA,59940
|
11
|
+
oafuncs/oa_down/hycom_3hourly_20241130.py,sha256=pXF_-e4DGnuRRkmzlFCPfLcw9Y6H22ui-VX08R38utw,65820
|
11
12
|
oafuncs/oa_down/hycom_3hourly_wholeday.py,sha256=bEl-hdSPJqN_9IaJIF-la0jEPw-sbCaKnciPirsWgP8,62598
|
12
13
|
oafuncs/oa_down/literature.py,sha256=dT3-7-beEzQ9mTP8LNV9Gf3q5Z1Pqqjc6FOS010HZeQ,17833
|
13
14
|
oafuncs/oa_down/refs_pdf.py,sha256=wr1sIYO2FUBJTn-K79NylbRUvCAFaee6_fQljxSI_Q8,17979
|
@@ -16,9 +17,9 @@ oafuncs/oa_sign/meteorological.py,sha256=mLbupsZSq427HTfVbZMvIlFzDHwSzQAbK3X19o8
|
|
16
17
|
oafuncs/oa_sign/ocean.py,sha256=xrW-rWD7xBWsB5PuCyEwQ1Q_RDKq2KCLz-LOONHgldU,5932
|
17
18
|
oafuncs/oa_sign/scientific.py,sha256=a4JxOBgm9vzNZKpJ_GQIQf7cokkraV5nh23HGbmTYKw,5064
|
18
19
|
oafuncs/oa_tool/__init__.py,sha256=IKOlqpWlb4cMDCtq2VKR_RTxQHDNqR_vfqqsOsp_lKQ,466
|
19
|
-
oafuncs/oa_tool/email.py,sha256=
|
20
|
-
oafuncs-0.0.
|
21
|
-
oafuncs-0.0.
|
22
|
-
oafuncs-0.0.
|
23
|
-
oafuncs-0.0.
|
24
|
-
oafuncs-0.0.
|
20
|
+
oafuncs/oa_tool/email.py,sha256=4lJxV_KUzhxgLYfVwYTqp0qxRugD7fvsZkXDe5WkUKo,3052
|
21
|
+
oafuncs-0.0.67.dist-info/LICENSE.txt,sha256=rMtLpVg8sKiSlwClfR9w_Dd_5WubTQgoOzE2PDFxzs4,1074
|
22
|
+
oafuncs-0.0.67.dist-info/METADATA,sha256=puWnV6dPOJTblWRv4VUAQUu9xKnKjSrwtDANjQu5t9s,22378
|
23
|
+
oafuncs-0.0.67.dist-info/WHEEL,sha256=pxeNX5JdtCe58PUSYP9upmc7jdRPgvT0Gm9kb1SHlVw,109
|
24
|
+
oafuncs-0.0.67.dist-info/top_level.txt,sha256=bgC35QkXbN4EmPHEveg_xGIZ5i9NNPYWqtJqaKqTPsQ,8
|
25
|
+
oafuncs-0.0.67.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|