qodalis-cli-server-plugin-data-explorer-mongo 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_mongo-1.0.0b35/PKG-INFO +114 -0
- qodalis_cli_server_plugin_data_explorer_mongo-1.0.0b35/README.md +91 -0
- {qodalis_cli_server_plugin_data_explorer_mongo-1.0.0b33 → qodalis_cli_server_plugin_data_explorer_mongo-1.0.0b35}/pyproject.toml +2 -2
- qodalis_cli_server_plugin_data_explorer_mongo-1.0.0b33/PKG-INFO +0 -21
- {qodalis_cli_server_plugin_data_explorer_mongo-1.0.0b33 → qodalis_cli_server_plugin_data_explorer_mongo-1.0.0b35}/.gitignore +0 -0
- {qodalis_cli_server_plugin_data_explorer_mongo-1.0.0b33 → qodalis_cli_server_plugin_data_explorer_mongo-1.0.0b35}/qodalis_cli_data_explorer_mongo/__init__.py +0 -0
- {qodalis_cli_server_plugin_data_explorer_mongo-1.0.0b33 → qodalis_cli_server_plugin_data_explorer_mongo-1.0.0b35}/qodalis_cli_data_explorer_mongo/mongo_provider.py +0 -0
- {qodalis_cli_server_plugin_data_explorer_mongo-1.0.0b33 → qodalis_cli_server_plugin_data_explorer_mongo-1.0.0b35}/qodalis_cli_data_explorer_mongo/plugin.py +0 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: qodalis-cli-server-plugin-data-explorer-mongo
|
|
3
|
+
Version: 1.0.0b35
|
|
4
|
+
Summary: MongoDB 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,mongodb,plugin,qodalis
|
|
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: motor>=3.0.0
|
|
21
|
+
Requires-Dist: qodalis-cli-server-abstractions
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
|
|
24
|
+
# qodalis-cli-server-plugin-data-explorer-mongo
|
|
25
|
+
|
|
26
|
+
MongoDB Data Explorer provider plugin for [Qodalis CLI Server (Python)](https://github.com/qodalis-solutions/cli-server-python). Executes MongoDB queries and commands against a database and returns structured results compatible with the Data Explorer API.
|
|
27
|
+
|
|
28
|
+
## Install
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pip install qodalis-cli-server-plugin-data-explorer-mongo
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Quick Start
|
|
35
|
+
|
|
36
|
+
```python
|
|
37
|
+
from qodalis_cli import create_cli_server
|
|
38
|
+
from qodalis_cli_server_abstractions import (
|
|
39
|
+
DataExplorerProviderOptions,
|
|
40
|
+
DataExplorerLanguage,
|
|
41
|
+
DataExplorerOutputFormat,
|
|
42
|
+
)
|
|
43
|
+
from qodalis_cli_data_explorer_mongo import MongoDataExplorerProvider
|
|
44
|
+
|
|
45
|
+
def configure(builder):
|
|
46
|
+
builder.add_data_explorer_provider(
|
|
47
|
+
MongoDataExplorerProvider("mongodb://localhost:27017", "mydb"),
|
|
48
|
+
DataExplorerProviderOptions(
|
|
49
|
+
name="mongo",
|
|
50
|
+
description="MongoDB database",
|
|
51
|
+
language=DataExplorerLanguage.MONGODB,
|
|
52
|
+
default_output_format=DataExplorerOutputFormat.JSON,
|
|
53
|
+
),
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
app = create_cli_server(configure=configure)
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Query Syntax
|
|
60
|
+
|
|
61
|
+
Queries use MongoDB shell-style syntax:
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
show collections
|
|
65
|
+
show dbs
|
|
66
|
+
db.users.find({"active": true})
|
|
67
|
+
db.orders.aggregate([{"$group": {"_id": "$status", "count": {"$sum": 1}}}])
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Configuration
|
|
71
|
+
|
|
72
|
+
| Parameter | Type | Description |
|
|
73
|
+
|---|---|---|
|
|
74
|
+
| `connection_string` | `str` | MongoDB connection URI (e.g., `mongodb://localhost:27017`) |
|
|
75
|
+
| `database` | `str` | Database name to query |
|
|
76
|
+
|
|
77
|
+
## Dependencies
|
|
78
|
+
|
|
79
|
+
- `qodalis-cli-server-plugin-data-explorer`
|
|
80
|
+
- `motor>=3.0.0`
|
|
81
|
+
|
|
82
|
+
## Terminal commands
|
|
83
|
+
|
|
84
|
+
None of its own: the provider is queried through the [data explorer plugin](../data-explorer/README.md#terminal-commands)
|
|
85
|
+
(`data-explorer` in the web CLI).
|
|
86
|
+
|
|
87
|
+
## Install from the dashboard
|
|
88
|
+
|
|
89
|
+
Installable at runtime from the server marketplace (the dashboard's Plugins → Marketplace, or
|
|
90
|
+
`admin plugins install data-explorer-mongo`; it loads at the next start), or in code through the same entry, its options the
|
|
91
|
+
defaults of the settings below (a saved setting overrides them):
|
|
92
|
+
|
|
93
|
+
```python
|
|
94
|
+
from qodalis_cli_data_explorer_mongo import plugin as data_explorer_mongo
|
|
95
|
+
|
|
96
|
+
builder.add_plugin(data_explorer_mongo, {...})
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Entry point `data-explorer-mongo = "qodalis_cli_data_explorer_mongo.plugin:create_plugin"` (group `qodalis_cli.plugins`), load order 70. Its settings
|
|
100
|
+
(provider `data-explorer-mongo`, section `settings`; `config set data-explorer-mongo.settings.<key> <value>`, then a restart):
|
|
101
|
+
|
|
102
|
+
| Setting | Type | Default | |
|
|
103
|
+
|---|---|---|---|
|
|
104
|
+
| `name` | string | `"mongo"` | Shown in the data explorer |
|
|
105
|
+
| `description` | string | `"MongoDB database"` | Description |
|
|
106
|
+
| `connectionString` | secret (required) | | e.g. mongodb://user:password@host:27017 (kept as a secret, never returned) |
|
|
107
|
+
| `database` | string (required) | | The database queried |
|
|
108
|
+
| `readOnly` | boolean | `true` | Queries may only read |
|
|
109
|
+
| `timeoutMs` | number | `30000` | Timeout (ms) |
|
|
110
|
+
| `maxRows` | number | `1000` | Rows at most |
|
|
111
|
+
|
|
112
|
+
## License
|
|
113
|
+
|
|
114
|
+
MIT
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# qodalis-cli-server-plugin-data-explorer-mongo
|
|
2
|
+
|
|
3
|
+
MongoDB Data Explorer provider plugin for [Qodalis CLI Server (Python)](https://github.com/qodalis-solutions/cli-server-python). Executes MongoDB queries and commands against a 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-mongo
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```python
|
|
14
|
+
from qodalis_cli import create_cli_server
|
|
15
|
+
from qodalis_cli_server_abstractions import (
|
|
16
|
+
DataExplorerProviderOptions,
|
|
17
|
+
DataExplorerLanguage,
|
|
18
|
+
DataExplorerOutputFormat,
|
|
19
|
+
)
|
|
20
|
+
from qodalis_cli_data_explorer_mongo import MongoDataExplorerProvider
|
|
21
|
+
|
|
22
|
+
def configure(builder):
|
|
23
|
+
builder.add_data_explorer_provider(
|
|
24
|
+
MongoDataExplorerProvider("mongodb://localhost:27017", "mydb"),
|
|
25
|
+
DataExplorerProviderOptions(
|
|
26
|
+
name="mongo",
|
|
27
|
+
description="MongoDB database",
|
|
28
|
+
language=DataExplorerLanguage.MONGODB,
|
|
29
|
+
default_output_format=DataExplorerOutputFormat.JSON,
|
|
30
|
+
),
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
app = create_cli_server(configure=configure)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Query Syntax
|
|
37
|
+
|
|
38
|
+
Queries use MongoDB shell-style syntax:
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
show collections
|
|
42
|
+
show dbs
|
|
43
|
+
db.users.find({"active": true})
|
|
44
|
+
db.orders.aggregate([{"$group": {"_id": "$status", "count": {"$sum": 1}}}])
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Configuration
|
|
48
|
+
|
|
49
|
+
| Parameter | Type | Description |
|
|
50
|
+
|---|---|---|
|
|
51
|
+
| `connection_string` | `str` | MongoDB connection URI (e.g., `mongodb://localhost:27017`) |
|
|
52
|
+
| `database` | `str` | Database name to query |
|
|
53
|
+
|
|
54
|
+
## Dependencies
|
|
55
|
+
|
|
56
|
+
- `qodalis-cli-server-plugin-data-explorer`
|
|
57
|
+
- `motor>=3.0.0`
|
|
58
|
+
|
|
59
|
+
## Terminal commands
|
|
60
|
+
|
|
61
|
+
None of its own: the provider is queried through the [data explorer plugin](../data-explorer/README.md#terminal-commands)
|
|
62
|
+
(`data-explorer` in the web CLI).
|
|
63
|
+
|
|
64
|
+
## Install from the dashboard
|
|
65
|
+
|
|
66
|
+
Installable at runtime from the server marketplace (the dashboard's Plugins → Marketplace, or
|
|
67
|
+
`admin plugins install data-explorer-mongo`; it loads at the next start), or in code through the same entry, its options the
|
|
68
|
+
defaults of the settings below (a saved setting overrides them):
|
|
69
|
+
|
|
70
|
+
```python
|
|
71
|
+
from qodalis_cli_data_explorer_mongo import plugin as data_explorer_mongo
|
|
72
|
+
|
|
73
|
+
builder.add_plugin(data_explorer_mongo, {...})
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Entry point `data-explorer-mongo = "qodalis_cli_data_explorer_mongo.plugin:create_plugin"` (group `qodalis_cli.plugins`), load order 70. Its settings
|
|
77
|
+
(provider `data-explorer-mongo`, section `settings`; `config set data-explorer-mongo.settings.<key> <value>`, then a restart):
|
|
78
|
+
|
|
79
|
+
| Setting | Type | Default | |
|
|
80
|
+
|---|---|---|---|
|
|
81
|
+
| `name` | string | `"mongo"` | Shown in the data explorer |
|
|
82
|
+
| `description` | string | `"MongoDB database"` | Description |
|
|
83
|
+
| `connectionString` | secret (required) | | e.g. mongodb://user:password@host:27017 (kept as a secret, never returned) |
|
|
84
|
+
| `database` | string (required) | | The database queried |
|
|
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
|
|
@@ -4,9 +4,9 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "qodalis-cli-server-plugin-data-explorer-mongo"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.0b35"
|
|
8
8
|
description = "MongoDB 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 = [
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.5
|
|
2
|
-
Name: qodalis-cli-server-plugin-data-explorer-mongo
|
|
3
|
-
Version: 1.0.0b33
|
|
4
|
-
Summary: MongoDB 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,mongodb,plugin,qodalis
|
|
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: motor>=3.0.0
|
|
21
|
-
Requires-Dist: qodalis-cli-server-abstractions
|
|
File without changes
|
|
File without changes
|
|
File without changes
|