SQLDbWrpr 4.3.0__tar.gz → 5.0.1__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.
- {sqldbwrpr-4.3.0 → sqldbwrpr-5.0.1}/LICENSE.txt +1 -1
- sqldbwrpr-5.0.1/PKG-INFO +130 -0
- sqldbwrpr-5.0.1/README.md +96 -0
- sqldbwrpr-5.0.1/pyproject.toml +124 -0
- {sqldbwrpr-4.3.0 → sqldbwrpr-5.0.1}/src/sqldbwrpr/sqldbwrpr.py +1370 -1370
- sqldbwrpr-4.3.0/PKG-INFO +0 -75
- sqldbwrpr-4.3.0/README.md +0 -43
- sqldbwrpr-4.3.0/pyproject.toml +0 -113
- {sqldbwrpr-4.3.0 → sqldbwrpr-5.0.1}/src/sqldbwrpr/__init__.py +0 -0
sqldbwrpr-5.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: SQLDbWrpr
|
|
3
|
+
Version: 5.0.1
|
|
4
|
+
Summary: Wrapper for importing CSV and Text files into MySQL and Postgress
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
License-File: LICENSE.txt
|
|
7
|
+
Author: Hendrik du Toit
|
|
8
|
+
Author-email: hendrik@brightedge.co.za
|
|
9
|
+
Maintainer: Hendrik du Toit
|
|
10
|
+
Maintainer-email: hendrikdt@citiqprepaid.co.za
|
|
11
|
+
Requires-Python: >=3.10
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: Information Technology
|
|
15
|
+
Classifier: Topic :: Software Development
|
|
16
|
+
Classifier: Topic :: Text Processing
|
|
17
|
+
Classifier: Topic :: Utilities
|
|
18
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Requires-Dist: csvwrpr (>=1.16.1,<2.0.0)
|
|
24
|
+
Requires-Dist: fixdate (>=2.1.0,<3.0.0)
|
|
25
|
+
Requires-Dist: mysql-connector (>=2.2.9,<3.0.0)
|
|
26
|
+
Requires-Dist: pydantic-settings (>=2.12.0,<3.0.0)
|
|
27
|
+
Requires-Dist: pyodbc (>=5.3.0,<6.0.0)
|
|
28
|
+
Project-URL: Homepage, https://github.com/BrightEdgeeServices/SqlDbWrpr
|
|
29
|
+
Project-URL: Issues, https://github.com/BrightEdgeeServices/SqlDbWrpr/issues
|
|
30
|
+
Project-URL: Repository, https://github.com/BrightEdgeeServices/SqlDbWrpr.git
|
|
31
|
+
Project-URL: changelog, https://github.com/BrightEdgeeServices/SqlDbWrpr/releases
|
|
32
|
+
Description-Content-Type: text/markdown
|
|
33
|
+
|
|
34
|
+
# SqlDbWrpr
|
|
35
|
+
|
|
36
|
+
| **Category** | **Status' and Links** |
|
|
37
|
+
| ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
38
|
+
| General | [![][general_maintenance_y_img]][general_maintenance_y_lnk] [![][general_semver_pic]][general_semver_link] [![][general_license_img]][general_license_lnk] |
|
|
39
|
+
| CD/CI | [![][gh_tests_img]][gh_tests_lnk] [![][cicd_codestyle_img]][cicd_codestyle_lnk] [![][cicd_pre_commit_img]][cicd_pre_commit_lnk] [![][codecov_img]][codecov_lnk] [![][gh_doc_img]][gh_doc_lnk] |
|
|
40
|
+
| PyPI | [![][pypi_release_img]][pypi_release_lnk] [![][pypi_py_versions_img]][pypi_py_versions_lnk] [![][pypi_format_img]][pypi_format_lnk] [![][pypi_downloads_img]][pypi_downloads_lnk] |
|
|
41
|
+
| Github | [![][gh_issues_img]][gh_issues_lnk] [![][gh_language_img]][gh_language_lnk] [![][gh_last_commit_img]][gh_last_commit_lnk] [![][gh_deployment_img]][gh_deployment_lnk] |
|
|
42
|
+
|
|
43
|
+
## Overview
|
|
44
|
+
|
|
45
|
+
SqlDbWrpr is a Python-based utility designed to simplify interactions with SQL databases, specifically MySQL and MSSQL. It provides a high-level abstraction for common database operations, making it easier to manage database schemas, import/export data, and handle user permissions.
|
|
46
|
+
|
|
47
|
+
### Key Features
|
|
48
|
+
|
|
49
|
+
- **Schema Management**: Define your database structure (tables, fields, types, primary keys, foreign keys, and indexes) using a simple Python dictionary. SqlDbWrpr handles the creation of the database and tables based on this definition.
|
|
50
|
+
- **Data Import/Export**:
|
|
51
|
+
- Effortlessly import data from CSV files into your SQL tables. It supports both single and multi-volume CSV files and handles data type conversions and date formatting.
|
|
52
|
+
- Export table data or custom SQL query results back to CSV files, with options for multi-volume exports if the data size is large.
|
|
53
|
+
- **User and Permission Management**: Create and delete database users and grant them specific rights across the database.
|
|
54
|
+
- **SSL Support**: Secure your database connections with built-in support for SSL CA, key, and certificate files.
|
|
55
|
+
- **Batch Processing**: Optimize performance during data imports with configurable batch sizes.
|
|
56
|
+
- **Multi-Database Support**: Includes dedicated classes for MySQL and MSSQL, ensuring compatibility across different SQL environments.
|
|
57
|
+
|
|
58
|
+
### Installation
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
pip install SqlDbWrpr
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Quick Start
|
|
65
|
+
|
|
66
|
+
```python
|
|
67
|
+
from sqldbwrpr.sqldbwrpr import MySQL
|
|
68
|
+
|
|
69
|
+
# Define your database structure
|
|
70
|
+
db_structure = {
|
|
71
|
+
"Users": {
|
|
72
|
+
"ID": {
|
|
73
|
+
"Type": ["int"],
|
|
74
|
+
"Params": {"PrimaryKey": ["Y", "A"], "NN": "Y", "AI": "Y"},
|
|
75
|
+
},
|
|
76
|
+
"Username": {"Type": ["varchar", 50], "Params": {"NN": "Y"}},
|
|
77
|
+
"Email": {"Type": ["varchar", 100], "Params": {"NN": "Y"}},
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
# Initialize the wrapper
|
|
82
|
+
db = MySQL(
|
|
83
|
+
p_host_name="localhost",
|
|
84
|
+
p_user_name="root",
|
|
85
|
+
p_password="yourpassword",
|
|
86
|
+
p_db_name="my_database",
|
|
87
|
+
p_db_structure=db_structure,
|
|
88
|
+
p_recreate_db=True,
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
# Import data from CSV
|
|
92
|
+
db.import_csv("Users", "users_data.csv")
|
|
93
|
+
|
|
94
|
+
# Export data to CSV
|
|
95
|
+
db.export_to_csv("exported_users.csv", "Users")
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
[cicd_codestyle_img]: https://img.shields.io/badge/code%20style-black-000000.svg "Black"
|
|
99
|
+
[cicd_codestyle_lnk]: https://github.com/psf/black "Black"
|
|
100
|
+
[cicd_pre_commit_img]: https://img.shields.io/github/actions/workflow/status/BrightEdgeeServices/SqlDbWrpr/pre-commit.yml?label=pre-commit "Pre-Commit"
|
|
101
|
+
[cicd_pre_commit_lnk]: https://github.com/BrightEdgeeServices/SqlDbWrpr/blob/master/.github/workflows/pre-commit.yml "Pre-Commit"
|
|
102
|
+
[codecov_img]: https://img.shields.io/codecov/c/gh/BrightEdgeeServices/SqlDbWrpr "CodeCov"
|
|
103
|
+
[codecov_lnk]: https://app.codecov.io/gh/BrightEdgeeServices/SqlDbWrpr "CodeCov"
|
|
104
|
+
[general_license_img]: https://img.shields.io/pypi/l/SqlDbWrpr "License"
|
|
105
|
+
[general_license_lnk]: https://github.com/BrightEdgeeServices/SqlDbWrpr/blob/master/LICENSE "License"
|
|
106
|
+
[general_maintenance_y_img]: https://img.shields.io/badge/Maintenance%20Intended-%E2%9C%94-green.svg?style=flat-square "Maintenance - intended"
|
|
107
|
+
[general_maintenance_y_lnk]: http://unmaintained.tech/ "Maintenance - intended"
|
|
108
|
+
[general_semver_link]: https://semver.org/ "Sentic Versioning - 2.0.0"
|
|
109
|
+
[general_semver_pic]: https://img.shields.io/badge/Semantic%20Versioning-2.0.0-brightgreen.svg?style=flat-square "Sentic Versioning - 2.0.0"
|
|
110
|
+
[gh_deployment_img]: https://img.shields.io/github/deployments/BrightEdgeeServices/SqlDbWrpr/pypi "GitHub - PiPy Deployment"
|
|
111
|
+
[gh_deployment_lnk]: https://github.com/BrightEdgeeServices/SqlDbWrpr/deployments/pypi "GitHub - PiPy Deployment"
|
|
112
|
+
[gh_doc_img]: https://img.shields.io/readthedocs/SqlDbWrpr "Read the Docs"
|
|
113
|
+
[gh_doc_lnk]: https://github.com/BrightEdgeeServices/SqlDbWrpr/blob/master/.github/workflows/check-rst-documentation.yml "Read the Docs"
|
|
114
|
+
[gh_issues_img]: https://img.shields.io/github/issues-raw/BrightEdgeeServices/SqlDbWrpr "GitHub - Issue Counter"
|
|
115
|
+
[gh_issues_lnk]: https://github.com/BrightEdgeeServices/SqlDbWrpr/issues "GitHub - Issue Counter"
|
|
116
|
+
[gh_language_img]: https://img.shields.io/github/languages/top/BrightEdgeeServices/SqlDbWrpr "GitHub - Top Language"
|
|
117
|
+
[gh_language_lnk]: https://github.com/BrightEdgeeServices/SqlDbWrpr "GitHub - Top Language"
|
|
118
|
+
[gh_last_commit_img]: https://img.shields.io/github/last-commit/BrightEdgeeServices/SqlDbWrpr/master "GitHub - Last Commit"
|
|
119
|
+
[gh_last_commit_lnk]: https://github.com/BrightEdgeeServices/SqlDbWrpr/commit/master "GitHub - Last Commit"
|
|
120
|
+
[gh_tests_img]: https://img.shields.io/github/actions/workflow/status/BrightEdgeeServices/SqlDbWrpr/ci.yml?label=ci "Test status"
|
|
121
|
+
[gh_tests_lnk]: https://github.com/BrightEdgeeServices/SqlDbWrpr/blob/master/.github/workflows/ci.yml "Test status"
|
|
122
|
+
[pypi_downloads_img]: https://img.shields.io/pypi/dm/SqlDbWrpr "Monthly downloads"
|
|
123
|
+
[pypi_downloads_lnk]: https://pypi.org/project/SqlDbWrpr/ "Monthly downloads"
|
|
124
|
+
[pypi_format_img]: https://img.shields.io/pypi/wheel/SqlDbWrpr "PyPI - Format"
|
|
125
|
+
[pypi_format_lnk]: https://pypi.org/project/SqlDbWrpr/ "PyPI - Format"
|
|
126
|
+
[pypi_py_versions_img]: https://img.shields.io/pypi/pyversions/SqlDbWrpr "PyPI - Supported Python Versions"
|
|
127
|
+
[pypi_py_versions_lnk]: https://pypi.org/project/SqlDbWrpr/ "PyPI - Supported Python Versions"
|
|
128
|
+
[pypi_release_img]: https://img.shields.io/pypi/v/SqlDbWrpr "Test status"
|
|
129
|
+
[pypi_release_lnk]: https://pypi.org/project/SqlDbWrpr/ "Test status"
|
|
130
|
+
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# SqlDbWrpr
|
|
2
|
+
|
|
3
|
+
| **Category** | **Status' and Links** |
|
|
4
|
+
| ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
5
|
+
| General | [![][general_maintenance_y_img]][general_maintenance_y_lnk] [![][general_semver_pic]][general_semver_link] [![][general_license_img]][general_license_lnk] |
|
|
6
|
+
| CD/CI | [![][gh_tests_img]][gh_tests_lnk] [![][cicd_codestyle_img]][cicd_codestyle_lnk] [![][cicd_pre_commit_img]][cicd_pre_commit_lnk] [![][codecov_img]][codecov_lnk] [![][gh_doc_img]][gh_doc_lnk] |
|
|
7
|
+
| PyPI | [![][pypi_release_img]][pypi_release_lnk] [![][pypi_py_versions_img]][pypi_py_versions_lnk] [![][pypi_format_img]][pypi_format_lnk] [![][pypi_downloads_img]][pypi_downloads_lnk] |
|
|
8
|
+
| Github | [![][gh_issues_img]][gh_issues_lnk] [![][gh_language_img]][gh_language_lnk] [![][gh_last_commit_img]][gh_last_commit_lnk] [![][gh_deployment_img]][gh_deployment_lnk] |
|
|
9
|
+
|
|
10
|
+
## Overview
|
|
11
|
+
|
|
12
|
+
SqlDbWrpr is a Python-based utility designed to simplify interactions with SQL databases, specifically MySQL and MSSQL. It provides a high-level abstraction for common database operations, making it easier to manage database schemas, import/export data, and handle user permissions.
|
|
13
|
+
|
|
14
|
+
### Key Features
|
|
15
|
+
|
|
16
|
+
- **Schema Management**: Define your database structure (tables, fields, types, primary keys, foreign keys, and indexes) using a simple Python dictionary. SqlDbWrpr handles the creation of the database and tables based on this definition.
|
|
17
|
+
- **Data Import/Export**:
|
|
18
|
+
- Effortlessly import data from CSV files into your SQL tables. It supports both single and multi-volume CSV files and handles data type conversions and date formatting.
|
|
19
|
+
- Export table data or custom SQL query results back to CSV files, with options for multi-volume exports if the data size is large.
|
|
20
|
+
- **User and Permission Management**: Create and delete database users and grant them specific rights across the database.
|
|
21
|
+
- **SSL Support**: Secure your database connections with built-in support for SSL CA, key, and certificate files.
|
|
22
|
+
- **Batch Processing**: Optimize performance during data imports with configurable batch sizes.
|
|
23
|
+
- **Multi-Database Support**: Includes dedicated classes for MySQL and MSSQL, ensuring compatibility across different SQL environments.
|
|
24
|
+
|
|
25
|
+
### Installation
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pip install SqlDbWrpr
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Quick Start
|
|
32
|
+
|
|
33
|
+
```python
|
|
34
|
+
from sqldbwrpr.sqldbwrpr import MySQL
|
|
35
|
+
|
|
36
|
+
# Define your database structure
|
|
37
|
+
db_structure = {
|
|
38
|
+
"Users": {
|
|
39
|
+
"ID": {
|
|
40
|
+
"Type": ["int"],
|
|
41
|
+
"Params": {"PrimaryKey": ["Y", "A"], "NN": "Y", "AI": "Y"},
|
|
42
|
+
},
|
|
43
|
+
"Username": {"Type": ["varchar", 50], "Params": {"NN": "Y"}},
|
|
44
|
+
"Email": {"Type": ["varchar", 100], "Params": {"NN": "Y"}},
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
# Initialize the wrapper
|
|
49
|
+
db = MySQL(
|
|
50
|
+
p_host_name="localhost",
|
|
51
|
+
p_user_name="root",
|
|
52
|
+
p_password="yourpassword",
|
|
53
|
+
p_db_name="my_database",
|
|
54
|
+
p_db_structure=db_structure,
|
|
55
|
+
p_recreate_db=True,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
# Import data from CSV
|
|
59
|
+
db.import_csv("Users", "users_data.csv")
|
|
60
|
+
|
|
61
|
+
# Export data to CSV
|
|
62
|
+
db.export_to_csv("exported_users.csv", "Users")
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
[cicd_codestyle_img]: https://img.shields.io/badge/code%20style-black-000000.svg "Black"
|
|
66
|
+
[cicd_codestyle_lnk]: https://github.com/psf/black "Black"
|
|
67
|
+
[cicd_pre_commit_img]: https://img.shields.io/github/actions/workflow/status/BrightEdgeeServices/SqlDbWrpr/pre-commit.yml?label=pre-commit "Pre-Commit"
|
|
68
|
+
[cicd_pre_commit_lnk]: https://github.com/BrightEdgeeServices/SqlDbWrpr/blob/master/.github/workflows/pre-commit.yml "Pre-Commit"
|
|
69
|
+
[codecov_img]: https://img.shields.io/codecov/c/gh/BrightEdgeeServices/SqlDbWrpr "CodeCov"
|
|
70
|
+
[codecov_lnk]: https://app.codecov.io/gh/BrightEdgeeServices/SqlDbWrpr "CodeCov"
|
|
71
|
+
[general_license_img]: https://img.shields.io/pypi/l/SqlDbWrpr "License"
|
|
72
|
+
[general_license_lnk]: https://github.com/BrightEdgeeServices/SqlDbWrpr/blob/master/LICENSE "License"
|
|
73
|
+
[general_maintenance_y_img]: https://img.shields.io/badge/Maintenance%20Intended-%E2%9C%94-green.svg?style=flat-square "Maintenance - intended"
|
|
74
|
+
[general_maintenance_y_lnk]: http://unmaintained.tech/ "Maintenance - intended"
|
|
75
|
+
[general_semver_link]: https://semver.org/ "Sentic Versioning - 2.0.0"
|
|
76
|
+
[general_semver_pic]: https://img.shields.io/badge/Semantic%20Versioning-2.0.0-brightgreen.svg?style=flat-square "Sentic Versioning - 2.0.0"
|
|
77
|
+
[gh_deployment_img]: https://img.shields.io/github/deployments/BrightEdgeeServices/SqlDbWrpr/pypi "GitHub - PiPy Deployment"
|
|
78
|
+
[gh_deployment_lnk]: https://github.com/BrightEdgeeServices/SqlDbWrpr/deployments/pypi "GitHub - PiPy Deployment"
|
|
79
|
+
[gh_doc_img]: https://img.shields.io/readthedocs/SqlDbWrpr "Read the Docs"
|
|
80
|
+
[gh_doc_lnk]: https://github.com/BrightEdgeeServices/SqlDbWrpr/blob/master/.github/workflows/check-rst-documentation.yml "Read the Docs"
|
|
81
|
+
[gh_issues_img]: https://img.shields.io/github/issues-raw/BrightEdgeeServices/SqlDbWrpr "GitHub - Issue Counter"
|
|
82
|
+
[gh_issues_lnk]: https://github.com/BrightEdgeeServices/SqlDbWrpr/issues "GitHub - Issue Counter"
|
|
83
|
+
[gh_language_img]: https://img.shields.io/github/languages/top/BrightEdgeeServices/SqlDbWrpr "GitHub - Top Language"
|
|
84
|
+
[gh_language_lnk]: https://github.com/BrightEdgeeServices/SqlDbWrpr "GitHub - Top Language"
|
|
85
|
+
[gh_last_commit_img]: https://img.shields.io/github/last-commit/BrightEdgeeServices/SqlDbWrpr/master "GitHub - Last Commit"
|
|
86
|
+
[gh_last_commit_lnk]: https://github.com/BrightEdgeeServices/SqlDbWrpr/commit/master "GitHub - Last Commit"
|
|
87
|
+
[gh_tests_img]: https://img.shields.io/github/actions/workflow/status/BrightEdgeeServices/SqlDbWrpr/ci.yml?label=ci "Test status"
|
|
88
|
+
[gh_tests_lnk]: https://github.com/BrightEdgeeServices/SqlDbWrpr/blob/master/.github/workflows/ci.yml "Test status"
|
|
89
|
+
[pypi_downloads_img]: https://img.shields.io/pypi/dm/SqlDbWrpr "Monthly downloads"
|
|
90
|
+
[pypi_downloads_lnk]: https://pypi.org/project/SqlDbWrpr/ "Monthly downloads"
|
|
91
|
+
[pypi_format_img]: https://img.shields.io/pypi/wheel/SqlDbWrpr "PyPI - Format"
|
|
92
|
+
[pypi_format_lnk]: https://pypi.org/project/SqlDbWrpr/ "PyPI - Format"
|
|
93
|
+
[pypi_py_versions_img]: https://img.shields.io/pypi/pyversions/SqlDbWrpr "PyPI - Supported Python Versions"
|
|
94
|
+
[pypi_py_versions_lnk]: https://pypi.org/project/SqlDbWrpr/ "PyPI - Supported Python Versions"
|
|
95
|
+
[pypi_release_img]: https://img.shields.io/pypi/v/SqlDbWrpr "Test status"
|
|
96
|
+
[pypi_release_lnk]: https://pypi.org/project/SqlDbWrpr/ "Test status"
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = [
|
|
3
|
+
"poetry-core>=2.0.0,<3.0.0",
|
|
4
|
+
]
|
|
5
|
+
build-backend = "poetry.core.masonry.api"
|
|
6
|
+
|
|
7
|
+
[project]
|
|
8
|
+
name = 'SQLDbWrpr'
|
|
9
|
+
version = '5.0.1'
|
|
10
|
+
description = 'Wrapper for importing CSV and Text files into MySQL and Postgress'
|
|
11
|
+
authors = [
|
|
12
|
+
{ name = "Hendrik du Toit", email = "hendrik@brightedge.co.za" }
|
|
13
|
+
]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Development Status :: 4 - Beta",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
"Intended Audience :: Information Technology",
|
|
18
|
+
'Topic :: Software Development',
|
|
19
|
+
'Topic :: Text Processing',
|
|
20
|
+
'Topic :: Utilities',
|
|
21
|
+
"License :: OSI Approved :: MIT License",
|
|
22
|
+
"Programming Language :: Python :: 3.10",
|
|
23
|
+
"Programming Language :: Python :: 3.11",
|
|
24
|
+
"Programming Language :: Python :: 3.12",
|
|
25
|
+
"Programming Language :: Python :: 3.13",
|
|
26
|
+
]
|
|
27
|
+
dependencies = [
|
|
28
|
+
"pydantic-settings (>=2.12.0,<3.0.0)",
|
|
29
|
+
"csvwrpr (>=1.16.1,<2.0.0)",
|
|
30
|
+
"fixdate (>=2.1.0,<3.0.0)",
|
|
31
|
+
"mysql-connector (>=2.2.9,<3.0.0)",
|
|
32
|
+
"pyodbc (>=5.3.0,<6.0.0)"
|
|
33
|
+
]
|
|
34
|
+
license = "MIT"
|
|
35
|
+
#license = "Proprietary"
|
|
36
|
+
license-files = ["LICENSE.txt"]
|
|
37
|
+
maintainers = [
|
|
38
|
+
{ name = "Hendrik du Toit", email = "hendrikdt@citiqprepaid.co.za" },
|
|
39
|
+
{ name = "Henru du Toit", email = "henru@brightedge.co.za" },
|
|
40
|
+
{ name = "Dirk du Toit", email = "dirk@brightedge.co.za" },
|
|
41
|
+
]
|
|
42
|
+
readme = { file = "README.md", content-type = "text/markdown" }
|
|
43
|
+
requires-python = ">=3.10"
|
|
44
|
+
|
|
45
|
+
[project.urls]
|
|
46
|
+
# documentation = "https://readthedocs.org"
|
|
47
|
+
Issues = "https://github.com/BrightEdgeeServices/SqlDbWrpr/issues"
|
|
48
|
+
changelog = 'https://github.com/BrightEdgeeServices/SqlDbWrpr/releases'
|
|
49
|
+
Homepage = "https://github.com/BrightEdgeeServices/SqlDbWrpr"
|
|
50
|
+
Repository = "https://github.com/BrightEdgeeServices/SqlDbWrpr.git"
|
|
51
|
+
|
|
52
|
+
[tool.black]
|
|
53
|
+
line-length = 120
|
|
54
|
+
target-version = [
|
|
55
|
+
"py313",
|
|
56
|
+
]
|
|
57
|
+
extend-exclude = """
|
|
58
|
+
(
|
|
59
|
+
^tests/testdata.py
|
|
60
|
+
)
|
|
61
|
+
"""
|
|
62
|
+
|
|
63
|
+
[tool.codespell]
|
|
64
|
+
count = ""
|
|
65
|
+
quiet-level = 2
|
|
66
|
+
skip = "working/*"
|
|
67
|
+
ignore-words-list = "space-holder"
|
|
68
|
+
write-changes = ""
|
|
69
|
+
|
|
70
|
+
[tool.coverage.run]
|
|
71
|
+
source = [
|
|
72
|
+
"src",
|
|
73
|
+
"tests"
|
|
74
|
+
]
|
|
75
|
+
|
|
76
|
+
[tool.isort]
|
|
77
|
+
profile = "black"
|
|
78
|
+
|
|
79
|
+
[tool.poetry.group.dev]
|
|
80
|
+
optional = true
|
|
81
|
+
|
|
82
|
+
[tool.poetry.group.dev.dependencies]
|
|
83
|
+
black = ">=25.1.0"
|
|
84
|
+
codecov = ">=2.1.13"
|
|
85
|
+
flake8 = ">=7.1.1"
|
|
86
|
+
isort = ">=5.13.2"
|
|
87
|
+
mdformat-gfm = ">=0.4.1"
|
|
88
|
+
mdformat-frontmatter = ">=2.0.8"
|
|
89
|
+
mdformat-footnote = ">=0.1.1"
|
|
90
|
+
pre-commit = ">=4.0.1"
|
|
91
|
+
pygments = "^2.19.1"
|
|
92
|
+
pytest = ">=8.3.4"
|
|
93
|
+
pytest-cov = ">=6.0.0"
|
|
94
|
+
rstcheck = { extras = [
|
|
95
|
+
"sphinx",
|
|
96
|
+
], version = ">=6.2.4" }
|
|
97
|
+
sphinx = ">=8.1.3"
|
|
98
|
+
twine = ">=6.1.0"
|
|
99
|
+
|
|
100
|
+
[[tool.poetry.source]]
|
|
101
|
+
name = "RTE"
|
|
102
|
+
url = "https://github.com/BrightEdgeeServices/PoetryPrivate.git"
|
|
103
|
+
priority = "explicit"
|
|
104
|
+
|
|
105
|
+
[tool.poetry.dependencies]
|
|
106
|
+
|
|
107
|
+
[tool.pytest.ini_options]
|
|
108
|
+
addopts = [
|
|
109
|
+
"-vv",
|
|
110
|
+
"--ignore-glob=*/Archive",
|
|
111
|
+
"--ignore=/legacy",
|
|
112
|
+
"--ignore=tests/legacy",
|
|
113
|
+
]
|
|
114
|
+
filterwarnings = [
|
|
115
|
+
# "ignore::DeprecationWarning",
|
|
116
|
+
]
|
|
117
|
+
pythonpath = [
|
|
118
|
+
"src",
|
|
119
|
+
"tests",
|
|
120
|
+
]
|
|
121
|
+
testpaths = "tests"
|
|
122
|
+
markers = [
|
|
123
|
+
"select: Run a selection of tests",
|
|
124
|
+
]
|