pyhelpers 2.5.2__tar.gz → 2.5.3__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.
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/.gitignore +3 -1
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/CHANGELOG.md +19 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/PKG-INFO +52 -8
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/README.md +47 -6
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/__init__.py +1 -1
- pyhelpers-2.5.3/pyhelpers/dbms/__init__.py +31 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/dbms/_base.py +2 -3
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/dbms/mssql.py +128 -75
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/dbms/postgresql.py +17 -25
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/dbms/utils.py +45 -29
- pyhelpers-2.5.3/pyhelpers/dirs/__init__.py +52 -0
- pyhelpers-2.5.3/pyhelpers/geom/__init__.py +27 -0
- pyhelpers-2.5.3/pyhelpers/ops/__init__.py +30 -0
- pyhelpers-2.5.3/pyhelpers/settings/__init__.py +26 -0
- pyhelpers-2.5.3/pyhelpers/store/__init__.py +30 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/store/converters.py +4 -3
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/store/savers.py +69 -48
- pyhelpers-2.5.3/pyhelpers/text/__init__.py +26 -0
- pyhelpers-2.5.3/pyhelpers/viz/__init__.py +37 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/viz/maps.py +32 -10
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyproject.toml +16 -4
- pyhelpers-2.5.2/pyhelpers/data/.metadata +0 -11
- pyhelpers-2.5.2/pyhelpers/dbms/__init__.py +0 -11
- pyhelpers-2.5.2/pyhelpers/dirs/__init__.py +0 -32
- pyhelpers-2.5.2/pyhelpers/geom/__init__.py +0 -7
- pyhelpers-2.5.2/pyhelpers/ops/__init__.py +0 -10
- pyhelpers-2.5.2/pyhelpers/settings/__init__.py +0 -6
- pyhelpers-2.5.2/pyhelpers/store/__init__.py +0 -10
- pyhelpers-2.5.2/pyhelpers/text/__init__.py +0 -6
- pyhelpers-2.5.2/pyhelpers/viz/__init__.py +0 -17
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/CITATION.cff +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/LICENSE +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/_cache.py +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/data/ansi-escape-codes.json +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/data/english-numerals.json +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/data/user-agent-strings.json +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/data/xlsx2csv.vbs +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/dirs/formatting.py +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/dirs/management.py +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/dirs/navigation.py +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/dirs/validation.py +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/geom/distances.py +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/geom/shapes.py +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/geom/transforms.py +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/ops/apis.py +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/ops/computation.py +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/ops/downloads.py +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/ops/general.py +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/ops/manipulation.py +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/ops/web.py +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/settings/configurations.py +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/settings/preferences.py +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/store/loaders.py +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/store/utils.py +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/text/preprocessing.py +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/text/similarity.py +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/viz/color_utils.py +0 -0
- {pyhelpers-2.5.2 → pyhelpers-2.5.3}/pyhelpers/viz/colormap.py +0 -0
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
# Changelog / Release notes
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
## [2.5.3](https://github.com/mikeqfu/pyhelpers/releases/tag/2.5.3)
|
|
5
|
+
|
|
6
|
+
(*20 September 2026*)
|
|
7
|
+
|
|
8
|
+
### Notable [changes](https://github.com/mikeqfu/pyhelpers/compare/2.5.2...2.5.3) since [2.5.2](https://pypi.org/project/pyhelpers/2.5.2/):
|
|
9
|
+
|
|
10
|
+
- **CI/CD & test coverage:**
|
|
11
|
+
* Added automated test coverage workflow using GitHub Actions and Codecov with an 80% target (#155).
|
|
12
|
+
* Integrated Codecov status badges into repository `README` and Sphinx documentation index (#156).
|
|
13
|
+
- **Subpackage refinements & bug fixes:**
|
|
14
|
+
* Extended unit test suites for `dbms`, `store` and `_cache` subpackages, updating default ODBC driver configuration to v18 (#155).
|
|
15
|
+
* Fixed keyword argument iteration in `add_sql_query_condition` (#155).
|
|
16
|
+
- **Maintenance & dependency management:**
|
|
17
|
+
* Added `python-dotenv` dependency, updated `.gitignore` rules and synchronized dependency lockfile (`uv.lock`) (#155, #156).
|
|
18
|
+
* Prepared project metadata and version bump for release 2.5.3 (#156).
|
|
19
|
+
|
|
20
|
+
**For more information and detailed specifications, check out the [PyHelpers 2.5.3 documentation](https://pyhelpers.readthedocs.io/en/2.5.3/).**
|
|
21
|
+
|
|
22
|
+
|
|
4
23
|
## [2.5.2](https://github.com/mikeqfu/pyhelpers/releases/tag/2.5.2)
|
|
5
24
|
|
|
6
25
|
(*25 August 2026*)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: pyhelpers
|
|
3
|
-
Version: 2.5.
|
|
3
|
+
Version: 2.5.3
|
|
4
4
|
Summary: An open-source toolkit for facilitating Python users' data manipulation tasks.
|
|
5
5
|
Project-URL: Homepage, https://github.com/mikeqfu/pyhelpers
|
|
6
6
|
Project-URL: Documentation, https://pyhelpers.readthedocs.io/en/latest/
|
|
@@ -8,7 +8,7 @@ Project-URL: Repository, https://github.com/mikeqfu/pyhelpers
|
|
|
8
8
|
Project-URL: Bug Tracker, https://github.com/mikeqfu/pyhelpers/issues
|
|
9
9
|
Project-URL: Changelog, https://github.com/mikeqfu/pyhelpers/blob/master/CHANGELOG.md
|
|
10
10
|
Author: Qian Fu
|
|
11
|
-
License
|
|
11
|
+
License: MIT
|
|
12
12
|
License-File: LICENSE
|
|
13
13
|
Keywords: Data manipulation,Data preprocessing,Python,Python utilities,Python utility,Python utils,Utilities
|
|
14
14
|
Classifier: Intended Audience :: Developers
|
|
@@ -17,6 +17,9 @@ Classifier: Intended Audience :: Science/Research
|
|
|
17
17
|
Classifier: Operating System :: Microsoft :: Windows
|
|
18
18
|
Classifier: Operating System :: POSIX :: Linux
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
20
23
|
Classifier: Topic :: Education
|
|
21
24
|
Classifier: Topic :: Scientific/Engineering
|
|
22
25
|
Classifier: Topic :: Software Development
|
|
@@ -89,11 +92,12 @@ Description-Content-Type: text/markdown
|
|
|
89
92
|
|
|
90
93
|
*An open-source toolkit for facilitating Python users' data manipulation tasks.*
|
|
91
94
|
|
|
92
|
-
[](https://www.python.org/downloads/)
|
|
93
96
|
[](https://github.com/mikeqfu/pyhelpers/blob/master/LICENSE)
|
|
94
97
|
[](https://pyhelpers.readthedocs.io/en/latest/?badge=latest)
|
|
95
98
|
[](https://github.com/mikeqfu/pyhelpers/actions)
|
|
96
99
|
[](https://app.codacy.com/gh/mikeqfu/pyhelpers/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
|
|
100
|
+
[](https://codecov.io/gh/mikeqfu/pyhelpers)
|
|
97
101
|
[](https://doi.org/10.5281/zenodo.4017438)
|
|
98
102
|
|
|
99
103
|
PyHelpers is an open-source Python package designed to streamline data (pre-)processing and manipulation tasks. It accommodates a wide range of functions and classes grounded in practical applications, making common data operations more accessible and efficient. This toolkit is particularly useful for Python learners, researchers and data scientists seeking to enhance their workflows.
|
|
@@ -104,18 +108,18 @@ With its comprehensive suite of practical tools, PyHelpers simplifies complex da
|
|
|
104
108
|
|
|
105
109
|
## Installation
|
|
106
110
|
|
|
107
|
-
PyHelpers can be installed using [`uv`](https://docs.astral.sh/uv/) (recommended) or [`pip`](https://pip.pypa.io/en/stable/cli/pip/).
|
|
111
|
+
PyHelpers can be installed using [`uv`](https://docs.astral.sh/uv/) (recommended for speed, reliability and modern dependency resolution), [`conda-forge`](https://anaconda.org/conda-forge/pyhelpers) (including [`pixi`](https://pixi.sh/)) or traditional [`pip`](https://pip.pypa.io/en/stable/cli/pip/).
|
|
108
112
|
|
|
109
113
|
<details open>
|
|
110
114
|
<summary><b>Using <code>uv</code> (Recommended)</b></summary>
|
|
111
115
|
|
|
112
|
-
To add PyHelpers to an existing project:
|
|
116
|
+
To add PyHelpers to an existing project managed by [`uv`](https://docs.astral.sh/uv/):
|
|
113
117
|
|
|
114
118
|
```bash
|
|
115
119
|
uv add pyhelpers
|
|
116
120
|
```
|
|
117
121
|
|
|
118
|
-
To include all optional features (e.g. geospatial and database
|
|
122
|
+
To include all optional features (e.g. geospatial drivers and database connectors):
|
|
119
123
|
|
|
120
124
|
```bash
|
|
121
125
|
uv add "pyhelpers[full]"
|
|
@@ -127,12 +131,39 @@ If you are working in an activated virtual environment:
|
|
|
127
131
|
uv pip install --upgrade pyhelpers
|
|
128
132
|
```
|
|
129
133
|
|
|
134
|
+
To install all optional features inside an active virtual environment:
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
uv pip install --upgrade "pyhelpers[full]"
|
|
138
|
+
```
|
|
130
139
|
</details>
|
|
131
140
|
|
|
132
141
|
<details>
|
|
133
|
-
<summary><b>Using
|
|
142
|
+
<summary><b>Using <code>pixi</code></b></summary>
|
|
143
|
+
|
|
144
|
+
To add the core PyHelpers package to a workspace using [`pixi`](https://pixi.sh/):
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
pixi add pyhelpers
|
|
148
|
+
```
|
|
134
149
|
|
|
135
|
-
|
|
150
|
+
To add PyHelpers along with optional dependencies (e.g. `gdal`, `pyarrow`, `fiona` and so on) via `pixi`:
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
pixi add pyhelpers gdal pyarrow fiona
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
Alternatively, to install PyHelpers with PyPI extras inside a `pixi` project:
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
pixi add --pypi "pyhelpers[full]"
|
|
160
|
+
```
|
|
161
|
+
</details>
|
|
162
|
+
|
|
163
|
+
<details>
|
|
164
|
+
<summary><b>Using <code>pip</code></b></summary>
|
|
165
|
+
|
|
166
|
+
To install PyHelpers into an active environment using [`pip`](https://pip.pypa.io/en/stable/cli/pip/):
|
|
136
167
|
|
|
137
168
|
```bash
|
|
138
169
|
pip install --upgrade pyhelpers
|
|
@@ -143,7 +174,20 @@ To install with all optional dependencies:
|
|
|
143
174
|
```bash
|
|
144
175
|
pip install --upgrade "pyhelpers[full]"
|
|
145
176
|
```
|
|
177
|
+
</details>
|
|
146
178
|
|
|
179
|
+
<details>
|
|
180
|
+
<summary><b>Using <code>conda</code></b></summary>
|
|
181
|
+
|
|
182
|
+
To install PyHelpers into an active environment using [`conda`](https://docs.conda.io/) (or [`mamba`](https://mamba.readthedocs.io/)):
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
# Core package
|
|
186
|
+
conda install -c conda-forge pyhelpers
|
|
187
|
+
|
|
188
|
+
# Full suite with binary C-extensions
|
|
189
|
+
conda install -c conda-forge pyhelpers gdal pyarrow fiona
|
|
190
|
+
```
|
|
147
191
|
</details>
|
|
148
192
|
|
|
149
193
|
For detailed options, development setup and Windows troubleshooting (e.g. installing C-extension wheels), see the full [Installation Guide](https://pyhelpers.readthedocs.io/en/latest/installation.html).
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
*An open-source toolkit for facilitating Python users' data manipulation tasks.*
|
|
4
4
|
|
|
5
|
-
[](https://www.python.org/downloads/)
|
|
6
6
|
[](https://github.com/mikeqfu/pyhelpers/blob/master/LICENSE)
|
|
7
7
|
[](https://pyhelpers.readthedocs.io/en/latest/?badge=latest)
|
|
8
8
|
[](https://github.com/mikeqfu/pyhelpers/actions)
|
|
9
9
|
[](https://app.codacy.com/gh/mikeqfu/pyhelpers/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
|
|
10
|
+
[](https://codecov.io/gh/mikeqfu/pyhelpers)
|
|
10
11
|
[](https://doi.org/10.5281/zenodo.4017438)
|
|
11
12
|
|
|
12
13
|
PyHelpers is an open-source Python package designed to streamline data (pre-)processing and manipulation tasks. It accommodates a wide range of functions and classes grounded in practical applications, making common data operations more accessible and efficient. This toolkit is particularly useful for Python learners, researchers and data scientists seeking to enhance their workflows.
|
|
@@ -17,18 +18,18 @@ With its comprehensive suite of practical tools, PyHelpers simplifies complex da
|
|
|
17
18
|
|
|
18
19
|
## Installation
|
|
19
20
|
|
|
20
|
-
PyHelpers can be installed using [`uv`](https://docs.astral.sh/uv/) (recommended) or [`pip`](https://pip.pypa.io/en/stable/cli/pip/).
|
|
21
|
+
PyHelpers can be installed using [`uv`](https://docs.astral.sh/uv/) (recommended for speed, reliability and modern dependency resolution), [`conda-forge`](https://anaconda.org/conda-forge/pyhelpers) (including [`pixi`](https://pixi.sh/)) or traditional [`pip`](https://pip.pypa.io/en/stable/cli/pip/).
|
|
21
22
|
|
|
22
23
|
<details open>
|
|
23
24
|
<summary><b>Using <code>uv</code> (Recommended)</b></summary>
|
|
24
25
|
|
|
25
|
-
To add PyHelpers to an existing project:
|
|
26
|
+
To add PyHelpers to an existing project managed by [`uv`](https://docs.astral.sh/uv/):
|
|
26
27
|
|
|
27
28
|
```bash
|
|
28
29
|
uv add pyhelpers
|
|
29
30
|
```
|
|
30
31
|
|
|
31
|
-
To include all optional features (e.g. geospatial and database
|
|
32
|
+
To include all optional features (e.g. geospatial drivers and database connectors):
|
|
32
33
|
|
|
33
34
|
```bash
|
|
34
35
|
uv add "pyhelpers[full]"
|
|
@@ -40,12 +41,39 @@ If you are working in an activated virtual environment:
|
|
|
40
41
|
uv pip install --upgrade pyhelpers
|
|
41
42
|
```
|
|
42
43
|
|
|
44
|
+
To install all optional features inside an active virtual environment:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
uv pip install --upgrade "pyhelpers[full]"
|
|
48
|
+
```
|
|
43
49
|
</details>
|
|
44
50
|
|
|
45
51
|
<details>
|
|
46
|
-
<summary><b>Using
|
|
52
|
+
<summary><b>Using <code>pixi</code></b></summary>
|
|
53
|
+
|
|
54
|
+
To add the core PyHelpers package to a workspace using [`pixi`](https://pixi.sh/):
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pixi add pyhelpers
|
|
58
|
+
```
|
|
47
59
|
|
|
48
|
-
|
|
60
|
+
To add PyHelpers along with optional dependencies (e.g. `gdal`, `pyarrow`, `fiona` and so on) via `pixi`:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
pixi add pyhelpers gdal pyarrow fiona
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Alternatively, to install PyHelpers with PyPI extras inside a `pixi` project:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
pixi add --pypi "pyhelpers[full]"
|
|
70
|
+
```
|
|
71
|
+
</details>
|
|
72
|
+
|
|
73
|
+
<details>
|
|
74
|
+
<summary><b>Using <code>pip</code></b></summary>
|
|
75
|
+
|
|
76
|
+
To install PyHelpers into an active environment using [`pip`](https://pip.pypa.io/en/stable/cli/pip/):
|
|
49
77
|
|
|
50
78
|
```bash
|
|
51
79
|
pip install --upgrade pyhelpers
|
|
@@ -56,7 +84,20 @@ To install with all optional dependencies:
|
|
|
56
84
|
```bash
|
|
57
85
|
pip install --upgrade "pyhelpers[full]"
|
|
58
86
|
```
|
|
87
|
+
</details>
|
|
59
88
|
|
|
89
|
+
<details>
|
|
90
|
+
<summary><b>Using <code>conda</code></b></summary>
|
|
91
|
+
|
|
92
|
+
To install PyHelpers into an active environment using [`conda`](https://docs.conda.io/) (or [`mamba`](https://mamba.readthedocs.io/)):
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
# Core package
|
|
96
|
+
conda install -c conda-forge pyhelpers
|
|
97
|
+
|
|
98
|
+
# Full suite with binary C-extensions
|
|
99
|
+
conda install -c conda-forge pyhelpers gdal pyarrow fiona
|
|
100
|
+
```
|
|
60
101
|
</details>
|
|
61
102
|
|
|
62
103
|
For detailed options, development setup and Windows troubleshooting (e.g. installing C-extension wheels), see the full [Installation Guide](https://pyhelpers.readthedocs.io/en/latest/installation.html).
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Copyright (c) 2019-2026 Qian Fu
|
|
2
|
+
#
|
|
3
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
# in the Software without restriction, including without limitation the rights
|
|
6
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
# furnished to do so, subject to the following conditions:
|
|
9
|
+
#
|
|
10
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
# copies or substantial portions of the Software.
|
|
12
|
+
#
|
|
13
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
# SOFTWARE.
|
|
20
|
+
|
|
21
|
+
"""
|
|
22
|
+
Communication with databases.
|
|
23
|
+
|
|
24
|
+
*The current release includes classes for* `PostgreSQL <https://www.postgresql.org/>`_
|
|
25
|
+
*and* `Microsoft SQL Server <https://www.microsoft.com/en-gb/sql-server/>`_.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
from .mssql import MSSQL
|
|
29
|
+
from .postgresql import PostgreSQL
|
|
30
|
+
|
|
31
|
+
__all__ = ['MSSQL', 'PostgreSQL']
|
|
@@ -71,8 +71,7 @@ class _Base:
|
|
|
71
71
|
|
|
72
72
|
with self.engine.connect() as connection:
|
|
73
73
|
result_ = connection.execute(query_)
|
|
74
|
-
|
|
75
|
-
result = result_.fetchone()
|
|
74
|
+
result = result_.fetchone()
|
|
76
75
|
|
|
77
76
|
return result
|
|
78
77
|
|
|
@@ -897,8 +896,8 @@ class _Base:
|
|
|
897
896
|
f"SELECT * FROM information_schema.columns "
|
|
898
897
|
f"WHERE table_schema='{schema_name_}' AND table_name='{table_name}';")
|
|
899
898
|
res = connection.execute(query)
|
|
899
|
+
keys, values = list(res.keys()), res.fetchall()
|
|
900
900
|
|
|
901
|
-
keys, values = list(res.keys()), res.fetchall()
|
|
902
901
|
idx = ['column_{}'.format(x) for x in range(len(values))]
|
|
903
902
|
|
|
904
903
|
column_info = pd.DataFrame(values, index=idx, columns=keys).T
|