afgutils 1.4.2__tar.gz → 1.4.4__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.
- {afgutils-1.4.2 → afgutils-1.4.4}/PKG-INFO +2 -3
- afgutils-1.4.4/afgutils/email.py +24 -0
- {afgutils-1.4.2 → afgutils-1.4.4}/afgutils.egg-info/PKG-INFO +2 -3
- {afgutils-1.4.2 → afgutils-1.4.4}/afgutils.egg-info/requires.txt +1 -2
- {afgutils-1.4.2 → afgutils-1.4.4}/setup.py +2 -3
- afgutils-1.4.2/afgutils/email.py +0 -23
- {afgutils-1.4.2 → afgutils-1.4.4}/afgutils/__init__.py +0 -0
- {afgutils-1.4.2 → afgutils-1.4.4}/afgutils/advanceai_util.py +0 -0
- {afgutils-1.4.2 → afgutils-1.4.4}/afgutils/cgi.py +0 -0
- {afgutils-1.4.2 → afgutils-1.4.4}/afgutils/credolab.py +0 -0
- {afgutils-1.4.2 → afgutils-1.4.4}/afgutils/db.py +0 -0
- {afgutils-1.4.2 → afgutils-1.4.4}/afgutils/s3.py +0 -0
- {afgutils-1.4.2 → afgutils-1.4.4}/afgutils/trandata.py +0 -0
- {afgutils-1.4.2 → afgutils-1.4.4}/afgutils/utils.py +0 -0
- {afgutils-1.4.2 → afgutils-1.4.4}/afgutils.egg-info/SOURCES.txt +0 -0
- {afgutils-1.4.2 → afgutils-1.4.4}/afgutils.egg-info/dependency_links.txt +0 -0
- {afgutils-1.4.2 → afgutils-1.4.4}/afgutils.egg-info/top_level.txt +0 -0
- {afgutils-1.4.2 → afgutils-1.4.4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: afgutils
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.4
|
|
4
4
|
Summary: Shared support functions
|
|
5
5
|
Author: Araz Heydarov
|
|
6
6
|
Author-email: araz.heydarov@asiafinancegroup.com
|
|
@@ -8,10 +8,9 @@ License: copyright
|
|
|
8
8
|
Requires-Python: >=3.10
|
|
9
9
|
Requires-Dist: requests>=2.31.0
|
|
10
10
|
Requires-Dist: pyodbc>=4.0.39
|
|
11
|
-
Requires-Dist: pywin32>=306
|
|
12
11
|
Requires-Dist: python-dotenv>=1.0.0
|
|
13
12
|
Requires-Dist: boto3>=1.27.0
|
|
14
|
-
Requires-Dist: pandas>=2.
|
|
13
|
+
Requires-Dist: pandas>=2.0.3
|
|
15
14
|
Requires-Dist: xmltodict>=0.13.0
|
|
16
15
|
Dynamic: author
|
|
17
16
|
Dynamic: author-email
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# from os import getenv
|
|
2
|
+
# import win32com.client as win32
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def send_email(to: str = None, subject: str = None, message: str = "Empty Message"):
|
|
6
|
+
pass
|
|
7
|
+
# # initial check
|
|
8
|
+
# if to is None and getenv('mail_to') is None:
|
|
9
|
+
# raise Exception("to should be passed as parameter or defined as env variable as mail_to")
|
|
10
|
+
# if to is None and getenv('mail_to'):
|
|
11
|
+
# to = getenv('mail_to')
|
|
12
|
+
# outlook = win32.Dispatch('outlook.application')
|
|
13
|
+
# mail = outlook.CreateItem(0)
|
|
14
|
+
# mail.To = to
|
|
15
|
+
# mail.Body = message
|
|
16
|
+
#
|
|
17
|
+
# # To send html content
|
|
18
|
+
# # mail.HTMLBody = '<h2>HTML Message body</h2>'
|
|
19
|
+
#
|
|
20
|
+
# # To attach a file to the email (optional):
|
|
21
|
+
# # attachment = "Path to the attachment"
|
|
22
|
+
# # mail.Attachments.Add(attachment)
|
|
23
|
+
#
|
|
24
|
+
# mail.Send()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: afgutils
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.4
|
|
4
4
|
Summary: Shared support functions
|
|
5
5
|
Author: Araz Heydarov
|
|
6
6
|
Author-email: araz.heydarov@asiafinancegroup.com
|
|
@@ -8,10 +8,9 @@ License: copyright
|
|
|
8
8
|
Requires-Python: >=3.10
|
|
9
9
|
Requires-Dist: requests>=2.31.0
|
|
10
10
|
Requires-Dist: pyodbc>=4.0.39
|
|
11
|
-
Requires-Dist: pywin32>=306
|
|
12
11
|
Requires-Dist: python-dotenv>=1.0.0
|
|
13
12
|
Requires-Dist: boto3>=1.27.0
|
|
14
|
-
Requires-Dist: pandas>=2.
|
|
13
|
+
Requires-Dist: pandas>=2.0.3
|
|
15
14
|
Requires-Dist: xmltodict>=0.13.0
|
|
16
15
|
Dynamic: author
|
|
17
16
|
Dynamic: author-email
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from setuptools import find_packages, setup
|
|
2
2
|
|
|
3
|
-
VERSION = "1.4.
|
|
3
|
+
VERSION = "1.4.4"
|
|
4
4
|
DESCRIPTION = "Shared support functions"
|
|
5
5
|
LONG_DESCRIPTION = "Shared support functions"
|
|
6
6
|
|
|
@@ -17,10 +17,9 @@ setup(
|
|
|
17
17
|
install_requires=[
|
|
18
18
|
"requests>=2.31.0",
|
|
19
19
|
"pyodbc>=4.0.39",
|
|
20
|
-
"pywin32>=306",
|
|
21
20
|
"python-dotenv>=1.0.0",
|
|
22
21
|
"boto3>=1.27.0",
|
|
23
|
-
"pandas>=2.
|
|
22
|
+
"pandas>=2.0.3",
|
|
24
23
|
"xmltodict>=0.13.0",
|
|
25
24
|
],
|
|
26
25
|
)
|
afgutils-1.4.2/afgutils/email.py
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
from os import getenv
|
|
2
|
-
import win32com.client as win32
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
def send_email(to: str = None, subject: str = None, message: str = "Empty Message"):
|
|
6
|
-
# initial check
|
|
7
|
-
if to is None and getenv('mail_to') is None:
|
|
8
|
-
raise Exception("to should be passed as parameter or defined as env variable as mail_to")
|
|
9
|
-
if to is None and getenv('mail_to'):
|
|
10
|
-
to = getenv('mail_to')
|
|
11
|
-
outlook = win32.Dispatch('outlook.application')
|
|
12
|
-
mail = outlook.CreateItem(0)
|
|
13
|
-
mail.To = to
|
|
14
|
-
mail.Body = message
|
|
15
|
-
|
|
16
|
-
# To send html content
|
|
17
|
-
# mail.HTMLBody = '<h2>HTML Message body</h2>'
|
|
18
|
-
|
|
19
|
-
# To attach a file to the email (optional):
|
|
20
|
-
# attachment = "Path to the attachment"
|
|
21
|
-
# mail.Attachments.Add(attachment)
|
|
22
|
-
|
|
23
|
-
mail.Send()
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|