qodalis-cli-server-plugin-data-explorer-postgres 1.0.0b32__py3-none-any.whl → 1.0.0b34__py3-none-any.whl
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_postgres-1.0.0b34.dist-info/METADATA +91 -0
- {qodalis_cli_server_plugin_data_explorer_postgres-1.0.0b32.dist-info → qodalis_cli_server_plugin_data_explorer_postgres-1.0.0b34.dist-info}/RECORD +4 -4
- qodalis_cli_server_plugin_data_explorer_postgres-1.0.0b32.dist-info/METADATA +0 -15
- {qodalis_cli_server_plugin_data_explorer_postgres-1.0.0b32.dist-info → qodalis_cli_server_plugin_data_explorer_postgres-1.0.0b34.dist-info}/WHEEL +0 -0
- {qodalis_cli_server_plugin_data_explorer_postgres-1.0.0b32.dist-info → qodalis_cli_server_plugin_data_explorer_postgres-1.0.0b34.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: qodalis-cli-server-plugin-data-explorer-postgres
|
|
3
|
+
Version: 1.0.0b34
|
|
4
|
+
Summary: PostgreSQL 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
|
+
Author-email: Nicolae Lupei <nicolae.lupei@qodalis.com>
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
Keywords: cli,data-explorer,plugin,postgres,postgresql,qodalis
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Requires-Python: >=3.10
|
|
14
|
+
Requires-Dist: asyncpg>=0.29.0
|
|
15
|
+
Requires-Dist: qodalis-cli-server-abstractions
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
|
|
18
|
+
# qodalis-cli-server-plugin-data-explorer-postgres
|
|
19
|
+
|
|
20
|
+
PostgreSQL Data Explorer provider plugin for [Qodalis CLI Server (Python)](https://github.com/qodalis-solutions/cli-server-python). Executes SQL queries against a PostgreSQL database and returns structured results compatible with the Data Explorer API.
|
|
21
|
+
|
|
22
|
+
## Install
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
pip install qodalis-cli-server-plugin-data-explorer-postgres
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Quick Start
|
|
29
|
+
|
|
30
|
+
```python
|
|
31
|
+
from qodalis_cli import create_cli_server
|
|
32
|
+
from qodalis_cli_server_abstractions import DataExplorerProviderOptions
|
|
33
|
+
from qodalis_cli_data_explorer_postgres import PostgresDataExplorerProvider
|
|
34
|
+
|
|
35
|
+
def configure(builder):
|
|
36
|
+
builder.add_data_explorer_provider(
|
|
37
|
+
PostgresDataExplorerProvider("postgresql://user:password@localhost:5432/mydb"),
|
|
38
|
+
DataExplorerProviderOptions(
|
|
39
|
+
name="postgres",
|
|
40
|
+
description="PostgreSQL database",
|
|
41
|
+
),
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
app = create_cli_server(configure=configure)
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Connection String
|
|
48
|
+
|
|
49
|
+
Uses standard PostgreSQL URI format:
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
postgresql://user:password@host:port/database
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Dependencies
|
|
56
|
+
|
|
57
|
+
- `qodalis-cli-server-plugin-data-explorer`
|
|
58
|
+
- `asyncpg>=0.29.0`
|
|
59
|
+
|
|
60
|
+
## Terminal commands
|
|
61
|
+
|
|
62
|
+
None of its own: the provider is queried through the [data explorer plugin](../data-explorer/README.md#terminal-commands)
|
|
63
|
+
(`data-explorer` in the web CLI).
|
|
64
|
+
|
|
65
|
+
## Install from the dashboard
|
|
66
|
+
|
|
67
|
+
Installable at runtime from the server marketplace (the dashboard's Plugins → Marketplace, or
|
|
68
|
+
`admin plugins install data-explorer-postgres`; it loads at the next start), or in code through the same entry, its options the
|
|
69
|
+
defaults of the settings below (a saved setting overrides them):
|
|
70
|
+
|
|
71
|
+
```python
|
|
72
|
+
from qodalis_cli_data_explorer_postgres import plugin as data_explorer_postgres
|
|
73
|
+
|
|
74
|
+
builder.add_plugin(data_explorer_postgres, {...})
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Entry point `data-explorer-postgres = "qodalis_cli_data_explorer_postgres.plugin:create_plugin"` (group `qodalis_cli.plugins`), load order 70. Its settings
|
|
78
|
+
(provider `data-explorer-postgres`, section `settings`; `config set data-explorer-postgres.settings.<key> <value>`, then a restart):
|
|
79
|
+
|
|
80
|
+
| Setting | Type | Default | |
|
|
81
|
+
|---|---|---|---|
|
|
82
|
+
| `name` | string | `"postgres"` | Shown in the data explorer |
|
|
83
|
+
| `description` | string | `"PostgreSQL database"` | Description |
|
|
84
|
+
| `connectionString` | secret (required) | | e.g. postgresql://user:password@host:5432/database (kept as a secret, never returned) |
|
|
85
|
+
| `readOnly` | boolean | `true` | Queries may only read |
|
|
86
|
+
| `timeoutMs` | number | `30000` | Timeout (ms) |
|
|
87
|
+
| `maxRows` | number | `1000` | Rows at most |
|
|
88
|
+
|
|
89
|
+
## License
|
|
90
|
+
|
|
91
|
+
MIT
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
qodalis_cli_data_explorer_postgres/__init__.py,sha256=sw7o9T2oDKZdIquXQ3s6OT0yooEXrFSID_vpBmy-kgo,272
|
|
2
2
|
qodalis_cli_data_explorer_postgres/plugin.py,sha256=hpTltulQOYf_aGDzbDZjj1ycKhGk3L4GvIkX2sbm26Y,2110
|
|
3
3
|
qodalis_cli_data_explorer_postgres/postgres_provider.py,sha256=ehpIimpTGvp9yOX4c1As_13bpua2gFBQXQLn5wJrS-k,6368
|
|
4
|
-
qodalis_cli_server_plugin_data_explorer_postgres-1.0.
|
|
5
|
-
qodalis_cli_server_plugin_data_explorer_postgres-1.0.
|
|
6
|
-
qodalis_cli_server_plugin_data_explorer_postgres-1.0.
|
|
7
|
-
qodalis_cli_server_plugin_data_explorer_postgres-1.0.
|
|
4
|
+
qodalis_cli_server_plugin_data_explorer_postgres-1.0.0b34.dist-info/METADATA,sha256=fLzyIeq3GNOwb7LZH1IX8W_i9gVkJbwbdl3yyWZDDvI,3316
|
|
5
|
+
qodalis_cli_server_plugin_data_explorer_postgres-1.0.0b34.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
6
|
+
qodalis_cli_server_plugin_data_explorer_postgres-1.0.0b34.dist-info/entry_points.txt,sha256=dj7R9RBfLkZN4pr6diII26pyPjMZPlhIpM8xMW9uX84,103
|
|
7
|
+
qodalis_cli_server_plugin_data_explorer_postgres-1.0.0b34.dist-info/RECORD,,
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.5
|
|
2
|
-
Name: qodalis-cli-server-plugin-data-explorer-postgres
|
|
3
|
-
Version: 1.0.0b32
|
|
4
|
-
Summary: PostgreSQL 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
|
-
Author-email: Nicolae Lupei <nicolae.lupei@qodalis.com>
|
|
8
|
-
License-Expression: MIT
|
|
9
|
-
Keywords: cli,data-explorer,plugin,postgres,postgresql,qodalis
|
|
10
|
-
Classifier: Development Status :: 4 - Beta
|
|
11
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
-
Classifier: Programming Language :: Python :: 3
|
|
13
|
-
Requires-Python: >=3.10
|
|
14
|
-
Requires-Dist: asyncpg>=0.29.0
|
|
15
|
-
Requires-Dist: qodalis-cli-server-abstractions
|
|
File without changes
|