qodalis-cli-server-plugin-filesystem-json 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_filesystem_json-1.0.0b35/PKG-INFO +89 -0
- qodalis_cli_server_plugin_filesystem_json-1.0.0b35/README.md +66 -0
- {qodalis_cli_server_plugin_filesystem_json-1.0.0b33 → qodalis_cli_server_plugin_filesystem_json-1.0.0b35}/pyproject.toml +2 -2
- qodalis_cli_server_plugin_filesystem_json-1.0.0b33/PKG-INFO +0 -21
- {qodalis_cli_server_plugin_filesystem_json-1.0.0b33 → qodalis_cli_server_plugin_filesystem_json-1.0.0b35}/.gitignore +0 -0
- {qodalis_cli_server_plugin_filesystem_json-1.0.0b33 → qodalis_cli_server_plugin_filesystem_json-1.0.0b35}/LICENSE +0 -0
- {qodalis_cli_server_plugin_filesystem_json-1.0.0b33 → qodalis_cli_server_plugin_filesystem_json-1.0.0b35}/qodalis_cli_filesystem_json/__init__.py +0 -0
- {qodalis_cli_server_plugin_filesystem_json-1.0.0b33 → qodalis_cli_server_plugin_filesystem_json-1.0.0b35}/qodalis_cli_filesystem_json/json_file_provider.py +0 -0
- {qodalis_cli_server_plugin_filesystem_json-1.0.0b33 → qodalis_cli_server_plugin_filesystem_json-1.0.0b35}/qodalis_cli_filesystem_json/plugin.py +0 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: qodalis-cli-server-plugin-filesystem-json
|
|
3
|
+
Version: 1.0.0b35
|
|
4
|
+
Summary: JSON file-based storage provider for the Qodalis CLI filesystem plugin
|
|
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
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: cli,filesystem,json,plugin,qodalis,storage
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Requires-Dist: qodalis-cli-server-plugin-filesystem
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
|
|
24
|
+
# qodalis-cli-server-plugin-filesystem-json
|
|
25
|
+
|
|
26
|
+
JSON file-based storage provider for [Qodalis CLI Server (Python)](https://github.com/qodalis-solutions/cli-server-python). Implements the `IFileStorageProvider` interface from the filesystem plugin, persisting all files and directories as a single JSON file on disk.
|
|
27
|
+
|
|
28
|
+
## Install
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pip install qodalis-cli-server-plugin-filesystem-json
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Quick Start
|
|
35
|
+
|
|
36
|
+
```python
|
|
37
|
+
from qodalis_cli import create_cli_server
|
|
38
|
+
from qodalis_cli_filesystem_json import JsonFileStorageProvider, JsonFileProviderOptions
|
|
39
|
+
|
|
40
|
+
provider = JsonFileStorageProvider(
|
|
41
|
+
JsonFileProviderOptions(file_path="./data/files.json")
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
def configure(builder):
|
|
45
|
+
builder.set_file_storage_provider(provider)
|
|
46
|
+
|
|
47
|
+
app = create_cli_server(configure=configure)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Configuration
|
|
51
|
+
|
|
52
|
+
| Option | Type | Description |
|
|
53
|
+
|---|---|---|
|
|
54
|
+
| `file_path` | `str` | Path to the JSON file used for storage |
|
|
55
|
+
|
|
56
|
+
The JSON file is created automatically if it does not exist. Parent directories are created as needed. The file is rewritten after every write mutation.
|
|
57
|
+
|
|
58
|
+
## Dependencies
|
|
59
|
+
|
|
60
|
+
- `qodalis-cli-server-plugin-filesystem`
|
|
61
|
+
|
|
62
|
+
## Terminal commands
|
|
63
|
+
|
|
64
|
+
None of its own: the storage is reached through the [filesystem plugin](../filesystem/README.md#terminal-commands)
|
|
65
|
+
(`scp` in the web CLI).
|
|
66
|
+
|
|
67
|
+
## Install from the dashboard
|
|
68
|
+
|
|
69
|
+
Installable at runtime from the server marketplace (the dashboard's Plugins → Marketplace, or
|
|
70
|
+
`admin plugins install filesystem-json`; it loads at the next start), or in code through the same entry, its options the
|
|
71
|
+
defaults of the settings below (a saved setting overrides them):
|
|
72
|
+
|
|
73
|
+
```python
|
|
74
|
+
from qodalis_cli_filesystem_json import plugin as filesystem_json
|
|
75
|
+
|
|
76
|
+
builder.add_plugin(filesystem_json, {...})
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Entry point `filesystem-json = "qodalis_cli_filesystem_json.plugin:create_plugin"` (group `qodalis_cli.plugins`), load order 50. Its settings
|
|
80
|
+
(provider `filesystem-json`, section `settings`; `config set filesystem-json.settings.<key> <value>`, then a restart):
|
|
81
|
+
|
|
82
|
+
| Setting | Type | Default | |
|
|
83
|
+
|---|---|---|---|
|
|
84
|
+
| `file` | string | `"files.json"` | The file the tree is kept in (relative paths from the plugin's data directory) |
|
|
85
|
+
| `readOnly` | boolean | `true` | Uploads, new folders and deletes are refused |
|
|
86
|
+
|
|
87
|
+
## License
|
|
88
|
+
|
|
89
|
+
MIT
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# qodalis-cli-server-plugin-filesystem-json
|
|
2
|
+
|
|
3
|
+
JSON file-based storage provider for [Qodalis CLI Server (Python)](https://github.com/qodalis-solutions/cli-server-python). Implements the `IFileStorageProvider` interface from the filesystem plugin, persisting all files and directories as a single JSON file on disk.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install qodalis-cli-server-plugin-filesystem-json
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```python
|
|
14
|
+
from qodalis_cli import create_cli_server
|
|
15
|
+
from qodalis_cli_filesystem_json import JsonFileStorageProvider, JsonFileProviderOptions
|
|
16
|
+
|
|
17
|
+
provider = JsonFileStorageProvider(
|
|
18
|
+
JsonFileProviderOptions(file_path="./data/files.json")
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
def configure(builder):
|
|
22
|
+
builder.set_file_storage_provider(provider)
|
|
23
|
+
|
|
24
|
+
app = create_cli_server(configure=configure)
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Configuration
|
|
28
|
+
|
|
29
|
+
| Option | Type | Description |
|
|
30
|
+
|---|---|---|
|
|
31
|
+
| `file_path` | `str` | Path to the JSON file used for storage |
|
|
32
|
+
|
|
33
|
+
The JSON file is created automatically if it does not exist. Parent directories are created as needed. The file is rewritten after every write mutation.
|
|
34
|
+
|
|
35
|
+
## Dependencies
|
|
36
|
+
|
|
37
|
+
- `qodalis-cli-server-plugin-filesystem`
|
|
38
|
+
|
|
39
|
+
## Terminal commands
|
|
40
|
+
|
|
41
|
+
None of its own: the storage is reached through the [filesystem plugin](../filesystem/README.md#terminal-commands)
|
|
42
|
+
(`scp` in the web CLI).
|
|
43
|
+
|
|
44
|
+
## Install from the dashboard
|
|
45
|
+
|
|
46
|
+
Installable at runtime from the server marketplace (the dashboard's Plugins → Marketplace, or
|
|
47
|
+
`admin plugins install filesystem-json`; it loads at the next start), or in code through the same entry, its options the
|
|
48
|
+
defaults of the settings below (a saved setting overrides them):
|
|
49
|
+
|
|
50
|
+
```python
|
|
51
|
+
from qodalis_cli_filesystem_json import plugin as filesystem_json
|
|
52
|
+
|
|
53
|
+
builder.add_plugin(filesystem_json, {...})
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Entry point `filesystem-json = "qodalis_cli_filesystem_json.plugin:create_plugin"` (group `qodalis_cli.plugins`), load order 50. Its settings
|
|
57
|
+
(provider `filesystem-json`, section `settings`; `config set filesystem-json.settings.<key> <value>`, then a restart):
|
|
58
|
+
|
|
59
|
+
| Setting | Type | Default | |
|
|
60
|
+
|---|---|---|---|
|
|
61
|
+
| `file` | string | `"files.json"` | The file the tree is kept in (relative paths from the plugin's data directory) |
|
|
62
|
+
| `readOnly` | boolean | `true` | Uploads, new folders and deletes are refused |
|
|
63
|
+
|
|
64
|
+
## License
|
|
65
|
+
|
|
66
|
+
MIT
|
|
@@ -4,9 +4,9 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "qodalis-cli-server-plugin-filesystem-json"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.0b35"
|
|
8
8
|
description = "JSON file-based storage provider for the Qodalis CLI filesystem plugin"
|
|
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-filesystem-json
|
|
3
|
-
Version: 1.0.0b33
|
|
4
|
-
Summary: JSON file-based storage provider for the Qodalis CLI filesystem plugin
|
|
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
|
-
License-File: LICENSE
|
|
11
|
-
Keywords: cli,filesystem,json,plugin,qodalis,storage
|
|
12
|
-
Classifier: Development Status :: 4 - Beta
|
|
13
|
-
Classifier: Intended Audience :: Developers
|
|
14
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
-
Classifier: Programming Language :: Python :: 3
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
-
Requires-Python: >=3.10
|
|
21
|
-
Requires-Dist: qodalis-cli-server-plugin-filesystem
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|