qodalis-cli-server-plugin-data-explorer-mysql 1.0.0b33__tar.gz → 1.0.0b35__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.
- qodalis_cli_server_plugin_data_explorer_mysql-1.0.0b35/PKG-INFO +106 -0
- qodalis_cli_server_plugin_data_explorer_mysql-1.0.0b35/README.md +82 -0
- {qodalis_cli_server_plugin_data_explorer_mysql-1.0.0b33 → qodalis_cli_server_plugin_data_explorer_mysql-1.0.0b35}/pyproject.toml +4 -2
- qodalis_cli_server_plugin_data_explorer_mysql-1.0.0b33/PKG-INFO +0 -21
- {qodalis_cli_server_plugin_data_explorer_mysql-1.0.0b33 → qodalis_cli_server_plugin_data_explorer_mysql-1.0.0b35}/.gitignore +0 -0
- {qodalis_cli_server_plugin_data_explorer_mysql-1.0.0b33 → qodalis_cli_server_plugin_data_explorer_mysql-1.0.0b35}/qodalis_cli_data_explorer_mysql/__init__.py +0 -0
- {qodalis_cli_server_plugin_data_explorer_mysql-1.0.0b33 → qodalis_cli_server_plugin_data_explorer_mysql-1.0.0b35}/qodalis_cli_data_explorer_mysql/mysql_provider.py +0 -0
- {qodalis_cli_server_plugin_data_explorer_mysql-1.0.0b33 → qodalis_cli_server_plugin_data_explorer_mysql-1.0.0b35}/qodalis_cli_data_explorer_mysql/plugin.py +0 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: qodalis-cli-server-plugin-data-explorer-mysql
|
|
3
|
+
Version: 1.0.0b35
|
|
4
|
+
Summary: MySQL Data Explorer provider plugin for Qodalis CLI servers
|
|
5
|
+
Project-URL: Homepage, https://github.com/qodalis-solutions/cli-server-python
|
|
6
|
+
Project-URL: Repository, https://github.com/qodalis-solutions/cli-server-python
|
|
7
|
+
Project-URL: Issues, https://github.com/qodalis-solutions/cli-server-python/issues
|
|
8
|
+
Author-email: Nicolae Lupei <nicolae.lupei@qodalis.com>
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
Keywords: cli,data-explorer,mysql,plugin,qodalis,sql
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Requires-Python: >=3.10
|
|
20
|
+
Requires-Dist: aiomysql>=0.2.0
|
|
21
|
+
Requires-Dist: cryptography>=42
|
|
22
|
+
Requires-Dist: qodalis-cli-server-abstractions
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
|
|
25
|
+
# qodalis-cli-server-plugin-data-explorer-mysql
|
|
26
|
+
|
|
27
|
+
MySQL Data Explorer provider plugin for [Qodalis CLI Server (Python)](https://github.com/qodalis-solutions/cli-server-python). Executes SQL queries against a MySQL database and returns structured results compatible with the Data Explorer API.
|
|
28
|
+
|
|
29
|
+
## Install
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pip install qodalis-cli-server-plugin-data-explorer-mysql
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Quick Start
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
from qodalis_cli import create_cli_server
|
|
39
|
+
from qodalis_cli_server_abstractions import DataExplorerProviderOptions
|
|
40
|
+
from qodalis_cli_data_explorer_mysql import MysqlDataExplorerProvider
|
|
41
|
+
|
|
42
|
+
def configure(builder):
|
|
43
|
+
builder.add_data_explorer_provider(
|
|
44
|
+
MysqlDataExplorerProvider("mysql://root:password@localhost:3306/mydb"),
|
|
45
|
+
DataExplorerProviderOptions(
|
|
46
|
+
name="mysql",
|
|
47
|
+
description="MySQL database",
|
|
48
|
+
),
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
app = create_cli_server(configure=configure)
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Connection String
|
|
55
|
+
|
|
56
|
+
Uses standard MySQL URI format:
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
mysql://user:password@host:port/database
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
| Component | Default | Description |
|
|
63
|
+
|---|---|---|
|
|
64
|
+
| `host` | `localhost` | MySQL server hostname |
|
|
65
|
+
| `port` | `3306` | MySQL server port |
|
|
66
|
+
| `user` | `root` | Login username |
|
|
67
|
+
| `password` | (empty) | Login password |
|
|
68
|
+
| `database` | (none) | Database name |
|
|
69
|
+
|
|
70
|
+
## Dependencies
|
|
71
|
+
|
|
72
|
+
- `qodalis-cli-server-plugin-data-explorer`
|
|
73
|
+
- `aiomysql>=0.2.0`
|
|
74
|
+
|
|
75
|
+
## Terminal commands
|
|
76
|
+
|
|
77
|
+
None of its own: the provider is queried through the [data explorer plugin](../data-explorer/README.md#terminal-commands)
|
|
78
|
+
(`data-explorer` in the web CLI).
|
|
79
|
+
|
|
80
|
+
## Install from the dashboard
|
|
81
|
+
|
|
82
|
+
Installable at runtime from the server marketplace (the dashboard's Plugins → Marketplace, or
|
|
83
|
+
`admin plugins install data-explorer-mysql`; it loads at the next start), or in code through the same entry, its options the
|
|
84
|
+
defaults of the settings below (a saved setting overrides them):
|
|
85
|
+
|
|
86
|
+
```python
|
|
87
|
+
from qodalis_cli_data_explorer_mysql import plugin as data_explorer_mysql
|
|
88
|
+
|
|
89
|
+
builder.add_plugin(data_explorer_mysql, {...})
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Entry point `data-explorer-mysql = "qodalis_cli_data_explorer_mysql.plugin:create_plugin"` (group `qodalis_cli.plugins`), load order 70. Its settings
|
|
93
|
+
(provider `data-explorer-mysql`, section `settings`; `config set data-explorer-mysql.settings.<key> <value>`, then a restart):
|
|
94
|
+
|
|
95
|
+
| Setting | Type | Default | |
|
|
96
|
+
|---|---|---|---|
|
|
97
|
+
| `name` | string | `"mysql"` | Shown in the data explorer |
|
|
98
|
+
| `description` | string | `"MySQL database"` | Description |
|
|
99
|
+
| `connectionString` | secret (required) | | e.g. mysql://user:password@host:3306/database (kept as a secret, never returned) |
|
|
100
|
+
| `readOnly` | boolean | `true` | Queries may only read |
|
|
101
|
+
| `timeoutMs` | number | `30000` | Timeout (ms) |
|
|
102
|
+
| `maxRows` | number | `1000` | Rows at most |
|
|
103
|
+
|
|
104
|
+
## License
|
|
105
|
+
|
|
106
|
+
MIT
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# qodalis-cli-server-plugin-data-explorer-mysql
|
|
2
|
+
|
|
3
|
+
MySQL Data Explorer provider plugin for [Qodalis CLI Server (Python)](https://github.com/qodalis-solutions/cli-server-python). Executes SQL queries against a MySQL database and returns structured results compatible with the Data Explorer API.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install qodalis-cli-server-plugin-data-explorer-mysql
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```python
|
|
14
|
+
from qodalis_cli import create_cli_server
|
|
15
|
+
from qodalis_cli_server_abstractions import DataExplorerProviderOptions
|
|
16
|
+
from qodalis_cli_data_explorer_mysql import MysqlDataExplorerProvider
|
|
17
|
+
|
|
18
|
+
def configure(builder):
|
|
19
|
+
builder.add_data_explorer_provider(
|
|
20
|
+
MysqlDataExplorerProvider("mysql://root:password@localhost:3306/mydb"),
|
|
21
|
+
DataExplorerProviderOptions(
|
|
22
|
+
name="mysql",
|
|
23
|
+
description="MySQL database",
|
|
24
|
+
),
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
app = create_cli_server(configure=configure)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Connection String
|
|
31
|
+
|
|
32
|
+
Uses standard MySQL URI format:
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
mysql://user:password@host:port/database
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
| Component | Default | Description |
|
|
39
|
+
|---|---|---|
|
|
40
|
+
| `host` | `localhost` | MySQL server hostname |
|
|
41
|
+
| `port` | `3306` | MySQL server port |
|
|
42
|
+
| `user` | `root` | Login username |
|
|
43
|
+
| `password` | (empty) | Login password |
|
|
44
|
+
| `database` | (none) | Database name |
|
|
45
|
+
|
|
46
|
+
## Dependencies
|
|
47
|
+
|
|
48
|
+
- `qodalis-cli-server-plugin-data-explorer`
|
|
49
|
+
- `aiomysql>=0.2.0`
|
|
50
|
+
|
|
51
|
+
## Terminal commands
|
|
52
|
+
|
|
53
|
+
None of its own: the provider is queried through the [data explorer plugin](../data-explorer/README.md#terminal-commands)
|
|
54
|
+
(`data-explorer` in the web CLI).
|
|
55
|
+
|
|
56
|
+
## Install from the dashboard
|
|
57
|
+
|
|
58
|
+
Installable at runtime from the server marketplace (the dashboard's Plugins → Marketplace, or
|
|
59
|
+
`admin plugins install data-explorer-mysql`; it loads at the next start), or in code through the same entry, its options the
|
|
60
|
+
defaults of the settings below (a saved setting overrides them):
|
|
61
|
+
|
|
62
|
+
```python
|
|
63
|
+
from qodalis_cli_data_explorer_mysql import plugin as data_explorer_mysql
|
|
64
|
+
|
|
65
|
+
builder.add_plugin(data_explorer_mysql, {...})
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Entry point `data-explorer-mysql = "qodalis_cli_data_explorer_mysql.plugin:create_plugin"` (group `qodalis_cli.plugins`), load order 70. Its settings
|
|
69
|
+
(provider `data-explorer-mysql`, section `settings`; `config set data-explorer-mysql.settings.<key> <value>`, then a restart):
|
|
70
|
+
|
|
71
|
+
| Setting | Type | Default | |
|
|
72
|
+
|---|---|---|---|
|
|
73
|
+
| `name` | string | `"mysql"` | Shown in the data explorer |
|
|
74
|
+
| `description` | string | `"MySQL database"` | Description |
|
|
75
|
+
| `connectionString` | secret (required) | | e.g. mysql://user:password@host:3306/database (kept as a secret, never returned) |
|
|
76
|
+
| `readOnly` | boolean | `true` | Queries may only read |
|
|
77
|
+
| `timeoutMs` | number | `30000` | Timeout (ms) |
|
|
78
|
+
| `maxRows` | number | `1000` | Rows at most |
|
|
79
|
+
|
|
80
|
+
## License
|
|
81
|
+
|
|
82
|
+
MIT
|
|
@@ -4,9 +4,9 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "qodalis-cli-server-plugin-data-explorer-mysql"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.0b35"
|
|
8
8
|
description = "MySQL Data Explorer provider plugin for Qodalis CLI servers"
|
|
9
|
-
readme =
|
|
9
|
+
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
11
11
|
requires-python = ">=3.10"
|
|
12
12
|
authors = [
|
|
@@ -26,6 +26,8 @@ classifiers = [
|
|
|
26
26
|
dependencies = [
|
|
27
27
|
"qodalis-cli-server-abstractions",
|
|
28
28
|
"aiomysql>=0.2.0",
|
|
29
|
+
# PyMySQL needs it for MySQL 8's default caching_sha2_password sign-in
|
|
30
|
+
"cryptography>=42",
|
|
29
31
|
]
|
|
30
32
|
|
|
31
33
|
[project.entry-points."qodalis_cli.plugins"]
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.5
|
|
2
|
-
Name: qodalis-cli-server-plugin-data-explorer-mysql
|
|
3
|
-
Version: 1.0.0b33
|
|
4
|
-
Summary: MySQL Data Explorer provider plugin for Qodalis CLI servers
|
|
5
|
-
Project-URL: Homepage, https://github.com/qodalis-solutions/cli-server-python
|
|
6
|
-
Project-URL: Repository, https://github.com/qodalis-solutions/cli-server-python
|
|
7
|
-
Project-URL: Issues, https://github.com/qodalis-solutions/cli-server-python/issues
|
|
8
|
-
Author-email: Nicolae Lupei <nicolae.lupei@qodalis.com>
|
|
9
|
-
License-Expression: MIT
|
|
10
|
-
Keywords: cli,data-explorer,mysql,plugin,qodalis,sql
|
|
11
|
-
Classifier: Development Status :: 4 - Beta
|
|
12
|
-
Classifier: Intended Audience :: Developers
|
|
13
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
-
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
-
Requires-Python: >=3.10
|
|
20
|
-
Requires-Dist: aiomysql>=0.2.0
|
|
21
|
-
Requires-Dist: qodalis-cli-server-abstractions
|
|
File without changes
|
|
File without changes
|
|
File without changes
|