json-database 0.9.0__tar.gz → 0.9.1__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.
- {json_database-0.9.0 → json_database-0.9.1}/PKG-INFO +9 -2
- {json_database-0.9.0 → json_database-0.9.1}/README.md +8 -2
- {json_database-0.9.0 → json_database-0.9.1}/json_database/hpm.py +6 -2
- {json_database-0.9.0 → json_database-0.9.1}/json_database/version.py +1 -1
- {json_database-0.9.0 → json_database-0.9.1}/json_database.egg-info/PKG-INFO +9 -2
- {json_database-0.9.0 → json_database-0.9.1}/json_database.egg-info/SOURCES.txt +1 -0
- json_database-0.9.1/json_database.egg-info/entry_points.txt +3 -0
- {json_database-0.9.0 → json_database-0.9.1}/setup.py +5 -1
- {json_database-0.9.0 → json_database-0.9.1}/LICENSE +0 -0
- {json_database-0.9.0 → json_database-0.9.1}/json_database/__init__.py +0 -0
- {json_database-0.9.0 → json_database-0.9.1}/json_database/crypto.py +0 -0
- {json_database-0.9.0 → json_database-0.9.1}/json_database/exceptions.py +0 -0
- {json_database-0.9.0 → json_database-0.9.1}/json_database/search.py +0 -0
- {json_database-0.9.0 → json_database-0.9.1}/json_database/utils.py +0 -0
- {json_database-0.9.0 → json_database-0.9.1}/json_database/xdg_utils.py +0 -0
- {json_database-0.9.0 → json_database-0.9.1}/json_database.egg-info/dependency_links.txt +0 -0
- {json_database-0.9.0 → json_database-0.9.1}/json_database.egg-info/requires.txt +0 -0
- {json_database-0.9.0 → json_database-0.9.1}/json_database.egg-info/top_level.txt +0 -0
- {json_database-0.9.0 → json_database-0.9.1}/setup.cfg +0 -0
- {json_database-0.9.0 → json_database-0.9.1}/test/test_crypto.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: json_database
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.1
|
|
4
4
|
Summary: searchable json database with persistence
|
|
5
5
|
Home-page: https://github.com/TigreGotico/json_database
|
|
6
6
|
Author: jarbasAI
|
|
@@ -28,7 +28,13 @@ Description: # Json Database
|
|
|
28
28
|
pip install json_database
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
|
|
32
|
+
## 📡 HiveMind Integration
|
|
33
|
+
|
|
34
|
+
This project includes a native [hivemind-plugin-manager](https://github.com/JarbasHiveMind/hivemind-plugin-manager) integration, providing seamless interoperability with the HiveMind ecosystem.
|
|
35
|
+
- **Database Plugin**: Provides `hivemind-json-db-plugin` allowing to use JSON-based storage for client credentials and permissions
|
|
36
|
+
|
|
37
|
+
## 🐍 Usage
|
|
32
38
|
|
|
33
39
|
|
|
34
40
|
### JsonStorage
|
|
@@ -198,5 +204,6 @@ Description: # Json Database
|
|
|
198
204
|
print(db.search_by_value("name", "jon", fuzzy=True))
|
|
199
205
|
|
|
200
206
|
```
|
|
207
|
+
|
|
201
208
|
Platform: UNKNOWN
|
|
202
209
|
Description-Content-Type: text/markdown
|
|
@@ -20,7 +20,13 @@ For those times when you need something simple and sql is overkill
|
|
|
20
20
|
pip install json_database
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
|
|
24
|
+
## 📡 HiveMind Integration
|
|
25
|
+
|
|
26
|
+
This project includes a native [hivemind-plugin-manager](https://github.com/JarbasHiveMind/hivemind-plugin-manager) integration, providing seamless interoperability with the HiveMind ecosystem.
|
|
27
|
+
- **Database Plugin**: Provides `hivemind-json-db-plugin` allowing to use JSON-based storage for client credentials and permissions
|
|
28
|
+
|
|
29
|
+
## 🐍 Usage
|
|
24
30
|
|
|
25
31
|
|
|
26
32
|
### JsonStorage
|
|
@@ -189,4 +195,4 @@ print(db.search_by_key("birth", fuzzy=True))
|
|
|
189
195
|
print(db.search_by_value("age", 12))
|
|
190
196
|
print(db.search_by_value("name", "jon", fuzzy=True))
|
|
191
197
|
|
|
192
|
-
```
|
|
198
|
+
```
|
|
@@ -3,13 +3,17 @@ from ovos_utils.log import LOG
|
|
|
3
3
|
from ovos_utils.xdg_utils import xdg_data_home
|
|
4
4
|
from typing import Union, Iterable, List
|
|
5
5
|
from json_database import JsonStorageXDG
|
|
6
|
+
from dataclasses import dataclass
|
|
6
7
|
|
|
7
8
|
|
|
9
|
+
@dataclass
|
|
8
10
|
class JsonDB(AbstractDB):
|
|
9
11
|
"""HiveMind Database implementation using JSON files."""
|
|
12
|
+
name: str = "clients"
|
|
13
|
+
subfolder: str = "hivemind-core"
|
|
10
14
|
|
|
11
|
-
def
|
|
12
|
-
self._db = JsonStorageXDG(name, subfolder=subfolder, xdg_folder=xdg_data_home())
|
|
15
|
+
def __post_init__(self):
|
|
16
|
+
self._db = JsonStorageXDG(self.name, subfolder=self.subfolder, xdg_folder=xdg_data_home())
|
|
13
17
|
LOG.debug(f"json database path: {self._db.path}")
|
|
14
18
|
|
|
15
19
|
def sync(self):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: json-database
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.1
|
|
4
4
|
Summary: searchable json database with persistence
|
|
5
5
|
Home-page: https://github.com/TigreGotico/json_database
|
|
6
6
|
Author: jarbasAI
|
|
@@ -28,7 +28,13 @@ Description: # Json Database
|
|
|
28
28
|
pip install json_database
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
|
|
32
|
+
## 📡 HiveMind Integration
|
|
33
|
+
|
|
34
|
+
This project includes a native [hivemind-plugin-manager](https://github.com/JarbasHiveMind/hivemind-plugin-manager) integration, providing seamless interoperability with the HiveMind ecosystem.
|
|
35
|
+
- **Database Plugin**: Provides `hivemind-json-db-plugin` allowing to use JSON-based storage for client credentials and permissions
|
|
36
|
+
|
|
37
|
+
## 🐍 Usage
|
|
32
38
|
|
|
33
39
|
|
|
34
40
|
### JsonStorage
|
|
@@ -198,5 +204,6 @@ Description: # Json Database
|
|
|
198
204
|
print(db.search_by_value("name", "jon", fuzzy=True))
|
|
199
205
|
|
|
200
206
|
```
|
|
207
|
+
|
|
201
208
|
Platform: UNKNOWN
|
|
202
209
|
Description-Content-Type: text/markdown
|
|
@@ -12,6 +12,7 @@ json_database/xdg_utils.py
|
|
|
12
12
|
json_database.egg-info/PKG-INFO
|
|
13
13
|
json_database.egg-info/SOURCES.txt
|
|
14
14
|
json_database.egg-info/dependency_links.txt
|
|
15
|
+
json_database.egg-info/entry_points.txt
|
|
15
16
|
json_database.egg-info/requires.txt
|
|
16
17
|
json_database.egg-info/top_level.txt
|
|
17
18
|
test/test_crypto.py
|
|
@@ -56,6 +56,9 @@ def get_description():
|
|
|
56
56
|
return long_description
|
|
57
57
|
|
|
58
58
|
|
|
59
|
+
PLUGIN_ENTRY_POINT = 'hivemind-json-db-plugin=json_database.hpm:JsonDB'
|
|
60
|
+
|
|
61
|
+
|
|
59
62
|
setup(
|
|
60
63
|
name='json_database',
|
|
61
64
|
version=get_version(),
|
|
@@ -68,6 +71,7 @@ setup(
|
|
|
68
71
|
author_email='jarbasai@mailfence.com',
|
|
69
72
|
install_requires=required('requirements.txt'),
|
|
70
73
|
description='searchable json database with persistence',
|
|
74
|
+
entry_points={'hivemind.database': PLUGIN_ENTRY_POINT},
|
|
71
75
|
long_description=get_description(),
|
|
72
|
-
long_description_content_type="text/markdown"
|
|
76
|
+
long_description_content_type="text/markdown"
|
|
73
77
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|