devsetgo-lib 0.13.1__tar.gz → 0.13.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.
- {devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/PKG-INFO +62 -52
- devsetgo_lib-0.13.2/README.md +117 -0
- {devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/dsg_lib/__init__.py +1 -1
- {devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/dsg_lib/common_functions/logging_config.py +13 -3
- {devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/pyproject.toml +1 -1
- devsetgo_lib-0.13.1/README.md +0 -107
- {devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/.gitignore +0 -0
- {devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/LICENSE +0 -0
- {devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/dsg_lib/async_database_functions/__import_sqlalchemy.py +0 -0
- {devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/dsg_lib/async_database_functions/__init__.py +0 -0
- {devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/dsg_lib/async_database_functions/async_database.py +0 -0
- {devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/dsg_lib/async_database_functions/base_schema.py +0 -0
- {devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/dsg_lib/async_database_functions/database_config.py +0 -0
- {devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/dsg_lib/async_database_functions/database_operations.py +0 -0
- {devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/dsg_lib/common_functions/__init__.py +0 -0
- {devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/dsg_lib/common_functions/calendar_functions.py +0 -0
- {devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/dsg_lib/common_functions/email_validation.py +0 -0
- {devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/dsg_lib/common_functions/file_functions.py +0 -0
- {devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/dsg_lib/common_functions/folder_functions.py +0 -0
- {devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/dsg_lib/common_functions/patterns.py +0 -0
- {devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/dsg_lib/fastapi_functions/__init__.py +0 -0
- {devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/dsg_lib/fastapi_functions/_all_codes.py +0 -0
- {devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/dsg_lib/fastapi_functions/http_codes.py +0 -0
- {devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/dsg_lib/fastapi_functions/system_health_endpoints.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: devsetgo_lib
|
|
3
|
-
Version: 0.13.
|
|
3
|
+
Version: 0.13.2
|
|
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/
|
|
@@ -82,78 +82,60 @@ Support Python Versions
|
|
|
82
82
|

|
|
83
83
|
[](https://github.com/astral-sh/ruff)
|
|
84
84
|
|
|
85
|
-
|
|
86
85
|
CI/CD Pipeline:
|
|
87
86
|
|
|
88
87
|
[](https://github.com/devsetgo/devsetgo_lib/actions/workflows/testing.yml)
|
|
89
88
|
[](https://github.com/devsetgo/devsetgo_lib/actions/workflows/testing.yml)
|
|
90
|
-
[](https://github.com/devsetgo/dsg_lib)
|
|
91
89
|
|
|
92
90
|
SonarCloud:
|
|
93
91
|
|
|
94
92
|
[](https://sonarcloud.io/dashboard?id=devsetgo_devsetgo_lib)
|
|
95
93
|
[](https://sonarcloud.io/dashboard?id=devsetgo_devsetgo_lib)
|
|
96
94
|
[](https://sonarcloud.io/dashboard?id=devsetgo_devsetgo_lib)
|
|
97
|
-
|
|
98
95
|
[](https://sonarcloud.io/dashboard?id=devsetgo_devsetgo_lib)
|
|
99
96
|
[](https://sonarcloud.io/dashboard?id=devsetgo_devsetgo_lib)
|
|
100
97
|
|
|
101
|
-

|
|
102
98
|
|
|
103
99
|
|
|
104
100
|
# DevSetGo Common Library
|
|
105
101
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
- **
|
|
111
|
-
- **
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
### Common Functions
|
|
115
|
-
- **File Functions**:
|
|
116
|
-
- CSV File Functions
|
|
117
|
-
- JSON File Functions
|
|
118
|
-
- Text File Functions
|
|
119
|
-
- **Folder Functions**:
|
|
120
|
-
- Make Directory
|
|
121
|
-
- Remove Directory
|
|
122
|
-
- Last File Changed
|
|
123
|
-
- Directory List
|
|
124
|
-
- **Calendar Functions**:
|
|
125
|
-
- Get Month
|
|
126
|
-
- Get Month Number
|
|
127
|
-
- **Patterns**:
|
|
128
|
-
- Pattern Between Two Characters
|
|
102
|
+
`devsetgo_lib` is a versatile library designed to provide common functions for Python applications. Its main goal is to increase reusability and reduce the need to rewrite the same functions across multiple applications. This also allows for quick defect resolution and propagation of fixes across all dependent projects.
|
|
103
|
+
|
|
104
|
+
## Key Features
|
|
105
|
+
|
|
106
|
+
- **File Operations**:
|
|
107
|
+
- **CSV, JSON, and Text File Functions**: Create, read, write, and manipulate various file types with ease.
|
|
108
|
+
- **Folder Functions**: Create and remove directories, list directory contents, and manage file system operations efficiently.
|
|
109
|
+
|
|
129
110
|
- **Logging**:
|
|
130
|
-
-
|
|
111
|
+
- Comprehensive logging setup using the `loguru` library. Provides extensive customization options for log configuration, including log rotation, retention, and formatting.
|
|
112
|
+
|
|
113
|
+
- **Calendar Functions**:
|
|
114
|
+
- Convert between month names and numbers seamlessly.
|
|
131
115
|
|
|
132
|
-
|
|
133
|
-
-
|
|
134
|
-
- Status/Health, Heapdump, Uptime
|
|
135
|
-
- **HTTP Codes**:
|
|
136
|
-
- Method to generate HTTP response codes
|
|
116
|
+
- **Pattern Matching**:
|
|
117
|
+
- Powerful tools for searching patterns in text using regular expressions.
|
|
137
118
|
|
|
138
|
-
|
|
139
|
-
-
|
|
140
|
-
-
|
|
141
|
-
- CRUD Operations
|
|
119
|
+
- **FastAPI Endpoints**:
|
|
120
|
+
- Pre-built endpoints for system health checks, status, and uptime monitoring.
|
|
121
|
+
- Functions to generate HTTP response codes easily.
|
|
142
122
|
|
|
143
|
-
|
|
144
|
-
|
|
123
|
+
- **Async Database**:
|
|
124
|
+
- Configuration and management of asynchronous database sessions.
|
|
125
|
+
- CRUD operations with async support.
|
|
145
126
|
|
|
146
|
-
## Installation
|
|
147
|
-
[Quick Start](https://devsetgo.github.io/devsetgo_lib/quickstart/)
|
|
127
|
+
## Installation
|
|
148
128
|
|
|
149
|
-
|
|
129
|
+
To install `devsetgo_lib`, use pip:
|
|
130
|
+
|
|
131
|
+
```sh
|
|
150
132
|
pip install devsetgo-lib
|
|
151
133
|
|
|
152
|
-
#
|
|
134
|
+
# For async database setup with SQLite or PostgreSQL
|
|
153
135
|
pip install devsetgo-lib[sqlite]
|
|
154
136
|
pip install devsetgo-lib[postgres]
|
|
155
137
|
|
|
156
|
-
#
|
|
138
|
+
# Experimental support for other databases
|
|
157
139
|
pip install devsetgo-lib[oracle]
|
|
158
140
|
pip install devsetgo-lib[mssql]
|
|
159
141
|
pip install devsetgo-lib[mysql]
|
|
@@ -165,15 +147,43 @@ pip install devsetgo-lib[fastapi]
|
|
|
165
147
|
pip install devsetgo-lib[all]
|
|
166
148
|
```
|
|
167
149
|
|
|
150
|
+
## Usage
|
|
151
|
+
|
|
152
|
+
Here's a quick example to demonstrate how you can use some of the key features of `devsetgo_lib`:
|
|
153
|
+
|
|
154
|
+
```python
|
|
155
|
+
from devsetgo_lib import file_functions, logging_config, patterns, calendar_functions
|
|
156
|
+
|
|
157
|
+
# File Operations
|
|
158
|
+
file_functions.create_sample_files("example", 100)
|
|
159
|
+
content = file_functions.read_from_file("example.csv")
|
|
160
|
+
print(content)
|
|
161
|
+
|
|
162
|
+
# Logging
|
|
163
|
+
logging_config.config_log(logging_directory='logs', log_name='app.log', logging_level='DEBUG')
|
|
164
|
+
logger = logging.getLogger('app_logger')
|
|
165
|
+
logger.info("This is an info message")
|
|
166
|
+
|
|
167
|
+
# Pattern Matching
|
|
168
|
+
text = "Hello, my name is 'John Doe' and I live in 'New York'."
|
|
169
|
+
results = patterns.pattern_between_two_char(text, "'", "'")
|
|
170
|
+
print(results)
|
|
171
|
+
|
|
172
|
+
# Calendar Functions
|
|
173
|
+
print(calendar_functions.get_month(1)) # Output: 'January'
|
|
174
|
+
print(calendar_functions.get_month_number('January')) # Output: 1
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
For detailed documentation on each module and function, please refer to the [official documentation](https://devsetgo.github.io/devsetgo_lib/print_page/).
|
|
168
178
|
|
|
169
|
-
##
|
|
170
|
-
|
|
179
|
+
## Contributing
|
|
180
|
+
|
|
181
|
+
We welcome contributions! Please see our [contributing guidelines](CONTRIBUTING.md) for more details.
|
|
171
182
|
|
|
172
183
|
## License
|
|
173
|
-
[MIT Licensed](https://github.com/devsetgo/devsetgo_lib/blob/main/LICENSE)
|
|
174
184
|
|
|
175
|
-
|
|
176
|
-
|
|
185
|
+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.
|
|
186
|
+
|
|
187
|
+
## Contact
|
|
177
188
|
|
|
178
|
-
|
|
179
|
-
For more detailed information, visit [LINK_TO_DETAILED_DOCUMENTATION](https://devsetgo.github.io/devsetgo_lib/).
|
|
189
|
+
For any questions or issues, please open an issue on GitHub or contact us at [devsetgo@example.com](mailto:devsetgo@example.com).
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
Python:
|
|
2
|
+
|
|
3
|
+
[](https://pypi.python.org/pypi/devsetgo-lib/)
|
|
4
|
+
[](https://pepy.tech/project/devsetgo-lib)
|
|
5
|
+
[](https://pepy.tech/project/devsetgo-lib)
|
|
6
|
+
[](https://pepy.tech/project/devsetgo-lib)
|
|
7
|
+
|
|
8
|
+
Support Python Versions
|
|
9
|
+
|
|
10
|
+

|
|
11
|
+
[](https://github.com/astral-sh/ruff)
|
|
12
|
+
|
|
13
|
+
CI/CD Pipeline:
|
|
14
|
+
|
|
15
|
+
[](https://github.com/devsetgo/devsetgo_lib/actions/workflows/testing.yml)
|
|
16
|
+
[](https://github.com/devsetgo/devsetgo_lib/actions/workflows/testing.yml)
|
|
17
|
+
|
|
18
|
+
SonarCloud:
|
|
19
|
+
|
|
20
|
+
[](https://sonarcloud.io/dashboard?id=devsetgo_devsetgo_lib)
|
|
21
|
+
[](https://sonarcloud.io/dashboard?id=devsetgo_devsetgo_lib)
|
|
22
|
+
[](https://sonarcloud.io/dashboard?id=devsetgo_devsetgo_lib)
|
|
23
|
+
[](https://sonarcloud.io/dashboard?id=devsetgo_devsetgo_lib)
|
|
24
|
+
[](https://sonarcloud.io/dashboard?id=devsetgo_devsetgo_lib)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# DevSetGo Common Library
|
|
29
|
+
|
|
30
|
+
`devsetgo_lib` is a versatile library designed to provide common functions for Python applications. Its main goal is to increase reusability and reduce the need to rewrite the same functions across multiple applications. This also allows for quick defect resolution and propagation of fixes across all dependent projects.
|
|
31
|
+
|
|
32
|
+
## Key Features
|
|
33
|
+
|
|
34
|
+
- **File Operations**:
|
|
35
|
+
- **CSV, JSON, and Text File Functions**: Create, read, write, and manipulate various file types with ease.
|
|
36
|
+
- **Folder Functions**: Create and remove directories, list directory contents, and manage file system operations efficiently.
|
|
37
|
+
|
|
38
|
+
- **Logging**:
|
|
39
|
+
- Comprehensive logging setup using the `loguru` library. Provides extensive customization options for log configuration, including log rotation, retention, and formatting.
|
|
40
|
+
|
|
41
|
+
- **Calendar Functions**:
|
|
42
|
+
- Convert between month names and numbers seamlessly.
|
|
43
|
+
|
|
44
|
+
- **Pattern Matching**:
|
|
45
|
+
- Powerful tools for searching patterns in text using regular expressions.
|
|
46
|
+
|
|
47
|
+
- **FastAPI Endpoints**:
|
|
48
|
+
- Pre-built endpoints for system health checks, status, and uptime monitoring.
|
|
49
|
+
- Functions to generate HTTP response codes easily.
|
|
50
|
+
|
|
51
|
+
- **Async Database**:
|
|
52
|
+
- Configuration and management of asynchronous database sessions.
|
|
53
|
+
- CRUD operations with async support.
|
|
54
|
+
|
|
55
|
+
## Installation
|
|
56
|
+
|
|
57
|
+
To install `devsetgo_lib`, use pip:
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
pip install devsetgo-lib
|
|
61
|
+
|
|
62
|
+
# For async database setup with SQLite or PostgreSQL
|
|
63
|
+
pip install devsetgo-lib[sqlite]
|
|
64
|
+
pip install devsetgo-lib[postgres]
|
|
65
|
+
|
|
66
|
+
# Experimental support for other databases
|
|
67
|
+
pip install devsetgo-lib[oracle]
|
|
68
|
+
pip install devsetgo-lib[mssql]
|
|
69
|
+
pip install devsetgo-lib[mysql]
|
|
70
|
+
|
|
71
|
+
# For adding FastAPI endpoints
|
|
72
|
+
pip install devsetgo-lib[fastapi]
|
|
73
|
+
|
|
74
|
+
# Install everything
|
|
75
|
+
pip install devsetgo-lib[all]
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Usage
|
|
79
|
+
|
|
80
|
+
Here's a quick example to demonstrate how you can use some of the key features of `devsetgo_lib`:
|
|
81
|
+
|
|
82
|
+
```python
|
|
83
|
+
from devsetgo_lib import file_functions, logging_config, patterns, calendar_functions
|
|
84
|
+
|
|
85
|
+
# File Operations
|
|
86
|
+
file_functions.create_sample_files("example", 100)
|
|
87
|
+
content = file_functions.read_from_file("example.csv")
|
|
88
|
+
print(content)
|
|
89
|
+
|
|
90
|
+
# Logging
|
|
91
|
+
logging_config.config_log(logging_directory='logs', log_name='app.log', logging_level='DEBUG')
|
|
92
|
+
logger = logging.getLogger('app_logger')
|
|
93
|
+
logger.info("This is an info message")
|
|
94
|
+
|
|
95
|
+
# Pattern Matching
|
|
96
|
+
text = "Hello, my name is 'John Doe' and I live in 'New York'."
|
|
97
|
+
results = patterns.pattern_between_two_char(text, "'", "'")
|
|
98
|
+
print(results)
|
|
99
|
+
|
|
100
|
+
# Calendar Functions
|
|
101
|
+
print(calendar_functions.get_month(1)) # Output: 'January'
|
|
102
|
+
print(calendar_functions.get_month_number('January')) # Output: 1
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
For detailed documentation on each module and function, please refer to the [official documentation](https://devsetgo.github.io/devsetgo_lib/print_page/).
|
|
106
|
+
|
|
107
|
+
## Contributing
|
|
108
|
+
|
|
109
|
+
We welcome contributions! Please see our [contributing guidelines](CONTRIBUTING.md) for more details.
|
|
110
|
+
|
|
111
|
+
## License
|
|
112
|
+
|
|
113
|
+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.
|
|
114
|
+
|
|
115
|
+
## Contact
|
|
116
|
+
|
|
117
|
+
For any questions or issues, please open an issue on GitHub or contact us at [devsetgo@example.com](mailto:devsetgo@example.com).
|
|
@@ -228,16 +228,26 @@ def config_log(
|
|
|
228
228
|
Methods:
|
|
229
229
|
write(message): Attempts to write a message to the file, retrying on failure up to `max_retries` times.
|
|
230
230
|
"""
|
|
231
|
-
def __init__(self, path, max_retries=
|
|
231
|
+
def __init__(self, path, max_retries=3, retry_delay=1.0, formatter=None):
|
|
232
232
|
self.path = path
|
|
233
233
|
self.max_retries = max_retries
|
|
234
234
|
self.retry_delay = retry_delay
|
|
235
|
+
self._formatter = formatter or logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
|
|
235
236
|
|
|
236
|
-
|
|
237
|
+
@property
|
|
238
|
+
def formatter(self):
|
|
239
|
+
return self._formatter
|
|
240
|
+
|
|
241
|
+
@formatter.setter
|
|
242
|
+
def formatter(self, value):
|
|
243
|
+
self._formatter = value
|
|
244
|
+
|
|
245
|
+
def write(self, message):
|
|
237
246
|
for attempt in range(self.max_retries):
|
|
238
247
|
try:
|
|
239
248
|
with open(self.path, 'a') as file:
|
|
240
|
-
|
|
249
|
+
formatted_message = self.formatter.format(message) if self._formatter else message
|
|
250
|
+
file.write(formatted_message + '\n') # Ensure newline
|
|
241
251
|
break # Successfully written, break the loop
|
|
242
252
|
except FileNotFoundError:
|
|
243
253
|
if attempt < self.max_retries - 1:
|
|
@@ -8,7 +8,7 @@ build-backend = "hatchling.build"
|
|
|
8
8
|
|
|
9
9
|
[project]
|
|
10
10
|
name = "devsetgo_lib"
|
|
11
|
-
version = "0.13.
|
|
11
|
+
version = "0.13.2"
|
|
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.
|
devsetgo_lib-0.13.1/README.md
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
Python:
|
|
2
|
-
|
|
3
|
-
[](https://pypi.python.org/pypi/devsetgo-lib/)
|
|
4
|
-
[](https://pepy.tech/project/devsetgo-lib)
|
|
5
|
-
[](https://pepy.tech/project/devsetgo-lib)
|
|
6
|
-
[](https://pepy.tech/project/devsetgo-lib)
|
|
7
|
-
|
|
8
|
-
Support Python Versions
|
|
9
|
-
|
|
10
|
-

|
|
11
|
-
[](https://github.com/astral-sh/ruff)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
CI/CD Pipeline:
|
|
15
|
-
|
|
16
|
-
[](https://github.com/devsetgo/devsetgo_lib/actions/workflows/testing.yml)
|
|
17
|
-
[](https://github.com/devsetgo/devsetgo_lib/actions/workflows/testing.yml)
|
|
18
|
-
[](https://github.com/devsetgo/dsg_lib)
|
|
19
|
-
|
|
20
|
-
SonarCloud:
|
|
21
|
-
|
|
22
|
-
[](https://sonarcloud.io/dashboard?id=devsetgo_devsetgo_lib)
|
|
23
|
-
[](https://sonarcloud.io/dashboard?id=devsetgo_devsetgo_lib)
|
|
24
|
-
[](https://sonarcloud.io/dashboard?id=devsetgo_devsetgo_lib)
|
|
25
|
-
|
|
26
|
-
[](https://sonarcloud.io/dashboard?id=devsetgo_devsetgo_lib)
|
|
27
|
-
[](https://sonarcloud.io/dashboard?id=devsetgo_devsetgo_lib)
|
|
28
|
-
|
|
29
|
-

|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
# DevSetGo Common Library
|
|
33
|
-
|
|
34
|
-
## Introduction
|
|
35
|
-
The DevSetGo Common Library is a comprehensive package of common functions designed to eliminate repetitive coding and enhance code reusability. It aims to save developers time and effort across various projects.
|
|
36
|
-
|
|
37
|
-
## Compatibility and Testing
|
|
38
|
-
- **Tested on**: Windows, Linux.
|
|
39
|
-
- **Compatibility**: Potentially compatible with MacOS (feedback on issues is appreciated).
|
|
40
|
-
|
|
41
|
-
## Library Functions
|
|
42
|
-
### Common Functions
|
|
43
|
-
- **File Functions**:
|
|
44
|
-
- CSV File Functions
|
|
45
|
-
- JSON File Functions
|
|
46
|
-
- Text File Functions
|
|
47
|
-
- **Folder Functions**:
|
|
48
|
-
- Make Directory
|
|
49
|
-
- Remove Directory
|
|
50
|
-
- Last File Changed
|
|
51
|
-
- Directory List
|
|
52
|
-
- **Calendar Functions**:
|
|
53
|
-
- Get Month
|
|
54
|
-
- Get Month Number
|
|
55
|
-
- **Patterns**:
|
|
56
|
-
- Pattern Between Two Characters
|
|
57
|
-
- **Logging**:
|
|
58
|
-
- Logging configuration and interceptor
|
|
59
|
-
|
|
60
|
-
### FastAPI Endpoints
|
|
61
|
-
- **Systems Health Endpoints**:
|
|
62
|
-
- Status/Health, Heapdump, Uptime
|
|
63
|
-
- **HTTP Codes**:
|
|
64
|
-
- Method to generate HTTP response codes
|
|
65
|
-
|
|
66
|
-
### Async Database
|
|
67
|
-
- Database Config
|
|
68
|
-
- Async Session
|
|
69
|
-
- CRUD Operations
|
|
70
|
-
|
|
71
|
-
## Examples and Usage
|
|
72
|
-
Refer to the [Recipes Pages](https://devsetgo.github.io/devsetgo_lib/recipes/fastapi/)
|
|
73
|
-
|
|
74
|
-
## Installation Guide
|
|
75
|
-
[Quick Start](https://devsetgo.github.io/devsetgo_lib/quickstart/)
|
|
76
|
-
|
|
77
|
-
```python
|
|
78
|
-
pip install devsetgo-lib
|
|
79
|
-
|
|
80
|
-
# Aysync database setup
|
|
81
|
-
pip install devsetgo-lib[sqlite]
|
|
82
|
-
pip install devsetgo-lib[postgres]
|
|
83
|
-
|
|
84
|
-
# Consider these experimental and untested
|
|
85
|
-
pip install devsetgo-lib[oracle]
|
|
86
|
-
pip install devsetgo-lib[mssql]
|
|
87
|
-
pip install devsetgo-lib[mysql]
|
|
88
|
-
|
|
89
|
-
# For adding FastAPI endpoints
|
|
90
|
-
pip install devsetgo-lib[fastapi]
|
|
91
|
-
|
|
92
|
-
# Install everything
|
|
93
|
-
pip install devsetgo-lib[all]
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
## Contribution and Feedback
|
|
98
|
-
Contributions and feedback are highly appreciated. Please refer to our [Contribution Guidelines](https://github.com/devsetgo/devsetgo_lib/blob/main/CONTRIBUTING.md).
|
|
99
|
-
|
|
100
|
-
## License
|
|
101
|
-
[MIT Licensed](https://github.com/devsetgo/devsetgo_lib/blob/main/LICENSE)
|
|
102
|
-
|
|
103
|
-
## Author Information
|
|
104
|
-
[Mike Ryan](https://github.com/devsetgo)
|
|
105
|
-
|
|
106
|
-
## Further Documentation
|
|
107
|
-
For more detailed information, visit [LINK_TO_DETAILED_DOCUMENTATION](https://devsetgo.github.io/devsetgo_lib/).
|
|
File without changes
|
|
File without changes
|
{devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/dsg_lib/async_database_functions/__import_sqlalchemy.py
RENAMED
|
File without changes
|
|
File without changes
|
{devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/dsg_lib/async_database_functions/async_database.py
RENAMED
|
File without changes
|
|
File without changes
|
{devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/dsg_lib/async_database_functions/database_config.py
RENAMED
|
File without changes
|
{devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/dsg_lib/async_database_functions/database_operations.py
RENAMED
|
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
|
{devsetgo_lib-0.13.1 → devsetgo_lib-0.13.2}/dsg_lib/fastapi_functions/system_health_endpoints.py
RENAMED
|
File without changes
|