qodalis-cli-server-plugin-data-explorer-postgres 1.0.0b32__tar.gz → 1.0.0b34__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.
@@ -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
@@ -0,0 +1,74 @@
1
+ # qodalis-cli-server-plugin-data-explorer-postgres
2
+
3
+ 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.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pip install qodalis-cli-server-plugin-data-explorer-postgres
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_postgres import PostgresDataExplorerProvider
17
+
18
+ def configure(builder):
19
+ builder.add_data_explorer_provider(
20
+ PostgresDataExplorerProvider("postgresql://user:password@localhost:5432/mydb"),
21
+ DataExplorerProviderOptions(
22
+ name="postgres",
23
+ description="PostgreSQL database",
24
+ ),
25
+ )
26
+
27
+ app = create_cli_server(configure=configure)
28
+ ```
29
+
30
+ ## Connection String
31
+
32
+ Uses standard PostgreSQL URI format:
33
+
34
+ ```
35
+ postgresql://user:password@host:port/database
36
+ ```
37
+
38
+ ## Dependencies
39
+
40
+ - `qodalis-cli-server-plugin-data-explorer`
41
+ - `asyncpg>=0.29.0`
42
+
43
+ ## Terminal commands
44
+
45
+ None of its own: the provider is queried through the [data explorer plugin](../data-explorer/README.md#terminal-commands)
46
+ (`data-explorer` in the web CLI).
47
+
48
+ ## Install from the dashboard
49
+
50
+ Installable at runtime from the server marketplace (the dashboard's Plugins → Marketplace, or
51
+ `admin plugins install data-explorer-postgres`; it loads at the next start), or in code through the same entry, its options the
52
+ defaults of the settings below (a saved setting overrides them):
53
+
54
+ ```python
55
+ from qodalis_cli_data_explorer_postgres import plugin as data_explorer_postgres
56
+
57
+ builder.add_plugin(data_explorer_postgres, {...})
58
+ ```
59
+
60
+ Entry point `data-explorer-postgres = "qodalis_cli_data_explorer_postgres.plugin:create_plugin"` (group `qodalis_cli.plugins`), load order 70. Its settings
61
+ (provider `data-explorer-postgres`, section `settings`; `config set data-explorer-postgres.settings.<key> <value>`, then a restart):
62
+
63
+ | Setting | Type | Default | |
64
+ |---|---|---|---|
65
+ | `name` | string | `"postgres"` | Shown in the data explorer |
66
+ | `description` | string | `"PostgreSQL database"` | Description |
67
+ | `connectionString` | secret (required) | | e.g. postgresql://user:password@host:5432/database (kept as a secret, never returned) |
68
+ | `readOnly` | boolean | `true` | Queries may only read |
69
+ | `timeoutMs` | number | `30000` | Timeout (ms) |
70
+ | `maxRows` | number | `1000` | Rows at most |
71
+
72
+ ## License
73
+
74
+ MIT
@@ -4,9 +4,9 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "qodalis-cli-server-plugin-data-explorer-postgres"
7
- version = "1.0.0b32"
7
+ version = "1.0.0b34"
8
8
  description = "PostgreSQL Data Explorer provider plugin for Qodalis CLI servers"
9
- readme = { text = "", content-type = "text/plain" }
9
+ readme = "README.md"
10
10
  license = "MIT"
11
11
  requires-python = ">=3.10"
12
12
  authors = [
@@ -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