devsetgo-lib 0.14.2__tar.gz → 0.14.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.
- {devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/PKG-INFO +2 -2
- devsetgo_lib-0.14.4/dsg_lib/__init__.py +24 -0
- {devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/dsg_lib/async_database_functions/__import_sqlalchemy.py +4 -2
- {devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/dsg_lib/async_database_functions/async_database.py +2 -2
- {devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/dsg_lib/async_database_functions/database_config.py +3 -2
- {devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/dsg_lib/async_database_functions/database_operations.py +3 -2
- {devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/dsg_lib/common_functions/calendar_functions.py +2 -1
- {devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/dsg_lib/common_functions/email_validation.py +4 -2
- {devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/dsg_lib/common_functions/file_functions.py +4 -2
- {devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/dsg_lib/common_functions/folder_functions.py +4 -2
- {devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/dsg_lib/common_functions/patterns.py +4 -2
- {devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/dsg_lib/fastapi_functions/http_codes.py +3 -2
- {devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/dsg_lib/fastapi_functions/system_health_endpoints.py +3 -4
- {devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/pyproject.toml +2 -2
- devsetgo_lib-0.14.2/dsg_lib/__init__.py +0 -12
- {devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/.gitignore +0 -0
- {devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/LICENSE +0 -0
- {devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/README.md +0 -0
- {devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/dsg_lib/async_database_functions/__init__.py +0 -0
- {devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/dsg_lib/async_database_functions/base_schema.py +0 -0
- {devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/dsg_lib/common_functions/__init__.py +0 -0
- {devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/dsg_lib/common_functions/logging_config.py +0 -0
- {devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/dsg_lib/fastapi_functions/__init__.py +0 -0
- {devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/dsg_lib/fastapi_functions/_all_codes.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: devsetgo_lib
|
|
3
|
-
Version: 0.14.
|
|
3
|
+
Version: 0.14.4
|
|
4
4
|
Summary: DevSetGo Library is a Python library offering reusable functions for efficient coding. It includes file operations, calendar utilities, pattern matching, advanced logging with loguru, FastAPI endpoints, async database handling, and email validation. Designed for ease of use and versatility, it's a valuable tool for Python developers.
|
|
5
5
|
Project-URL: Homepage, https://github.com/devsetgo/devsetgo_lib
|
|
6
6
|
Project-URL: Documentation, https://devsetgo.github.io/devsetgo_lib/
|
|
@@ -49,8 +49,8 @@ Provides-Extra: all
|
|
|
49
49
|
Requires-Dist: aioodbc>=0.4.1; extra == 'all'
|
|
50
50
|
Requires-Dist: aiosqlite>=0.17.0; extra == 'all'
|
|
51
51
|
Requires-Dist: asyncpg>=0.21.0; extra == 'all'
|
|
52
|
-
Requires-Dist: cx-oracle>=8.0.0; extra == 'all'
|
|
53
52
|
Requires-Dist: fastapi>=0.100.0; extra == 'all'
|
|
53
|
+
Requires-Dist: oracledb<2.5.0,>=2.4.1; extra == 'all'
|
|
54
54
|
Requires-Dist: pydantic[email]>=2.0; extra == 'all'
|
|
55
55
|
Requires-Dist: sqlalchemy<2.0.99,>=2.0.10; extra == 'all'
|
|
56
56
|
Provides-Extra: fastapi
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
"""
|
|
3
|
+
DevSetGo Library
|
|
4
|
+
=========
|
|
5
|
+
|
|
6
|
+
Author: Mike Ryan <mikeryan56@gmail.com>
|
|
7
|
+
License: MIT
|
|
8
|
+
"""
|
|
9
|
+
from datetime import date
|
|
10
|
+
|
|
11
|
+
__version__ = "0.14.4"
|
|
12
|
+
__author__ = "Mike Ryan"
|
|
13
|
+
__license__ = "MIT"
|
|
14
|
+
__copyright__ = f"Copyright© 2021-{date.today().year}"
|
|
15
|
+
__site__ = "https://github.com/devsetgo/devsetgo_lib"
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# Import the library's modules
|
|
19
|
+
import logging
|
|
20
|
+
|
|
21
|
+
# Configure the library's logger
|
|
22
|
+
LOGGER = logging.getLogger("devsetgo_lib")
|
|
23
|
+
LOGGER.addHandler(logging.NullHandler())
|
|
24
|
+
LOGGER.propagate = False
|
{devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/dsg_lib/async_database_functions/__import_sqlalchemy.py
RENAMED
|
@@ -24,12 +24,14 @@ Date Created:
|
|
|
24
24
|
Date Updated:
|
|
25
25
|
2024/07/26
|
|
26
26
|
"""
|
|
27
|
-
# from loguru import logger
|
|
28
|
-
import logging as logger
|
|
29
27
|
from typing import Tuple
|
|
30
28
|
|
|
31
29
|
from packaging import version as packaging_version
|
|
32
30
|
|
|
31
|
+
# from loguru import logger
|
|
32
|
+
# import logging as logger
|
|
33
|
+
from .. import LOGGER as logger
|
|
34
|
+
|
|
33
35
|
# Importing AsyncDatabase class from local module async_database
|
|
34
36
|
|
|
35
37
|
|
{devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/dsg_lib/async_database_functions/database_config.py
RENAMED
|
@@ -43,11 +43,12 @@ Author: Mike Ryan
|
|
|
43
43
|
Date: 2024/05/16
|
|
44
44
|
License: MIT
|
|
45
45
|
"""
|
|
46
|
-
# from loguru import logger
|
|
47
|
-
import logging as logger
|
|
48
46
|
from contextlib import asynccontextmanager
|
|
49
47
|
from typing import Dict
|
|
50
48
|
|
|
49
|
+
# from loguru import logger
|
|
50
|
+
# import logging as logger
|
|
51
|
+
from .. import LOGGER as logger
|
|
51
52
|
from .__import_sqlalchemy import import_sqlalchemy
|
|
52
53
|
|
|
53
54
|
(
|
{devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/dsg_lib/async_database_functions/database_operations.py
RENAMED
|
@@ -29,14 +29,15 @@ Date: 2024/05/16
|
|
|
29
29
|
License: MIT
|
|
30
30
|
"""
|
|
31
31
|
|
|
32
|
-
# from loguru import logger
|
|
33
|
-
import logging as logger
|
|
34
32
|
import time
|
|
35
33
|
from typing import Dict, List, Type
|
|
36
34
|
|
|
37
35
|
from sqlalchemy import delete
|
|
38
36
|
from sqlalchemy.ext.declarative import DeclarativeMeta
|
|
39
37
|
|
|
38
|
+
# from loguru import logger
|
|
39
|
+
# import logging as logger
|
|
40
|
+
from .. import LOGGER as logger
|
|
40
41
|
from .__import_sqlalchemy import import_sqlalchemy
|
|
41
42
|
# Importing AsyncDatabase class from local module async_database
|
|
42
43
|
from .async_database import AsyncDatabase
|
|
@@ -36,8 +36,6 @@ Author: Mike Ryan
|
|
|
36
36
|
Date: 2024/05/16
|
|
37
37
|
License: MIT
|
|
38
38
|
"""
|
|
39
|
-
# from loguru import logger
|
|
40
|
-
import logging as logger
|
|
41
39
|
from enum import Enum
|
|
42
40
|
from typing import Dict, List, Union
|
|
43
41
|
|
|
@@ -48,6 +46,10 @@ from email_validator import (
|
|
|
48
46
|
validate_email,
|
|
49
47
|
)
|
|
50
48
|
|
|
49
|
+
# from loguru import logger
|
|
50
|
+
# import logging as logger
|
|
51
|
+
from .. import LOGGER as logger
|
|
52
|
+
|
|
51
53
|
|
|
52
54
|
class DNSType(Enum):
|
|
53
55
|
"""
|
|
@@ -40,14 +40,16 @@ License: MIT
|
|
|
40
40
|
# Import required modules
|
|
41
41
|
import csv
|
|
42
42
|
import json
|
|
43
|
-
# from loguru import logger
|
|
44
|
-
import logging as logger
|
|
45
43
|
import os
|
|
46
44
|
import random
|
|
47
45
|
from datetime import datetime
|
|
48
46
|
from pathlib import Path
|
|
49
47
|
from typing import List
|
|
50
48
|
|
|
49
|
+
# from loguru import logger
|
|
50
|
+
# import logging as logger
|
|
51
|
+
from .. import LOGGER as logger
|
|
52
|
+
|
|
51
53
|
# Set the path to the directory where the files are located
|
|
52
54
|
directory_to_files: str = "data"
|
|
53
55
|
|
|
@@ -37,13 +37,15 @@ Date: 2024/05/16
|
|
|
37
37
|
License: MIT
|
|
38
38
|
"""
|
|
39
39
|
|
|
40
|
-
# from loguru import logger
|
|
41
|
-
import logging as logger
|
|
42
40
|
import re
|
|
43
41
|
from datetime import datetime
|
|
44
42
|
from pathlib import Path
|
|
45
43
|
from typing import List, Tuple
|
|
46
44
|
|
|
45
|
+
# from loguru import logger
|
|
46
|
+
# import logging as logger
|
|
47
|
+
from .. import LOGGER as logger
|
|
48
|
+
|
|
47
49
|
# Define the directory where the files are located
|
|
48
50
|
directory_to__files: str = "data"
|
|
49
51
|
file_directory = f"{directory_to__files}/csv"
|
|
@@ -38,10 +38,12 @@ Date: 2024/05/16
|
|
|
38
38
|
License: MIT
|
|
39
39
|
|
|
40
40
|
"""
|
|
41
|
-
# from loguru import logger
|
|
42
|
-
import logging as logger
|
|
43
41
|
import re
|
|
44
42
|
|
|
43
|
+
# from loguru import logger
|
|
44
|
+
# import logging as logger
|
|
45
|
+
from .. import LOGGER as logger
|
|
46
|
+
|
|
45
47
|
|
|
46
48
|
def pattern_between_two_char(
|
|
47
49
|
text_string: str, left_characters: str, right_characters: str
|
|
@@ -28,10 +28,11 @@ Author: Mike Ryan
|
|
|
28
28
|
Date: 2024/05/16
|
|
29
29
|
License: MIT
|
|
30
30
|
"""
|
|
31
|
-
# from loguru import logger
|
|
32
|
-
import logging as logger
|
|
33
31
|
from typing import Dict, List, Union
|
|
34
32
|
|
|
33
|
+
# from loguru import logger
|
|
34
|
+
# import logging as logger
|
|
35
|
+
from .. import LOGGER as logger
|
|
35
36
|
from ._all_codes import ALL_HTTP_CODES
|
|
36
37
|
|
|
37
38
|
# TODO: Create a way to extend the ALL_HTTP_CODES dictionary with custom codes.
|
{devsetgo_lib-0.14.2 → devsetgo_lib-0.14.4}/dsg_lib/fastapi_functions/system_health_endpoints.py
RENAMED
|
@@ -68,13 +68,12 @@ Date: 2024/05/16
|
|
|
68
68
|
License: MIT
|
|
69
69
|
"""
|
|
70
70
|
|
|
71
|
-
# Importing database connector module
|
|
72
|
-
# from loguru import logger
|
|
73
|
-
import logging as logger
|
|
74
71
|
# Import necessary modules
|
|
75
72
|
import time
|
|
76
73
|
import tracemalloc
|
|
77
74
|
|
|
75
|
+
# Importing database connector module
|
|
76
|
+
from loguru import logger
|
|
78
77
|
from packaging import version as packaging_version
|
|
79
78
|
|
|
80
79
|
from dsg_lib.fastapi_functions.http_codes import generate_code_dict
|
|
@@ -382,7 +381,7 @@ def create_health_router(config: dict):
|
|
|
382
381
|
}
|
|
383
382
|
)
|
|
384
383
|
|
|
385
|
-
logger.
|
|
384
|
+
logger.info(f"Heap dump returned {heap_dump}")
|
|
386
385
|
memory_use = tracemalloc.get_traced_memory()
|
|
387
386
|
return {
|
|
388
387
|
"memory_use": {
|
|
@@ -8,7 +8,7 @@ build-backend = "hatchling.build"
|
|
|
8
8
|
|
|
9
9
|
[project]
|
|
10
10
|
name = "devsetgo_lib"
|
|
11
|
-
version = "0.14.
|
|
11
|
+
version = "0.14.4"
|
|
12
12
|
requires-python = ">=3.9"
|
|
13
13
|
description = """
|
|
14
14
|
DevSetGo Library is a Python library offering reusable functions for efficient coding. It includes file operations, calendar utilities, pattern matching, advanced logging with loguru, FastAPI endpoints, async database handling, and email validation. Designed for ease of use and versatility, it's a valuable tool for Python developers.
|
|
@@ -60,7 +60,7 @@ all = [
|
|
|
60
60
|
"asyncpg>=0.21.0",
|
|
61
61
|
"sqlalchemy>=2.0.10,<2.0.99",
|
|
62
62
|
"aiosqlite>=0.17.0",
|
|
63
|
-
"
|
|
63
|
+
"oracledb>=2.4.1,<2.5.0",
|
|
64
64
|
"fastapi>=0.100.0",
|
|
65
65
|
"pydantic[email]>=2.0",
|
|
66
66
|
"aioodbc>=0.4.1",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
"""
|
|
3
|
-
DevSetGo Library
|
|
4
|
-
=========
|
|
5
|
-
|
|
6
|
-
DevSetGo Library is a Python library offering reusable functions for efficient coding. It includes file operations, calendar utilities, pattern matching, advanced logging with loguru, FastAPI endpoints, async database handling, and email validation. Designed for ease of use and versatility, it's a valuable tool for Python developers.
|
|
7
|
-
|
|
8
|
-
Author: Mike Ryan <mikeryan56@gmail.com>
|
|
9
|
-
License: MIT
|
|
10
|
-
"""
|
|
11
|
-
|
|
12
|
-
__version__ = "0.14.2"
|
|
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
|