Skip to content

Commit ef8d137

Browse files
committed
Merge branch 'feature/Samles' into develop
2 parents 60b0272 + e1553f7 commit ef8d137

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

Samples/Post/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Sample implementation
2+
3+
1) create virtual environment `virtual ./.venv`
4+
2) activate it ` . ./venv/bin/activate`
5+
3) install dependencies `pip install Rocket-Store`
6+
4) run test `python test.py`

Samples/Post/test.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
from Rocketstore import Rocketstore, _ADD_AUTO_INC
2+
3+
rs = Rocketstore(**{"data_storage_area": "./test"})
4+
5+
print(rs)
6+
7+
dataInput = {
8+
"content": "hello asfalsdfsalfaslflasl",
9+
"embeddings": [0.2, 0.31231312, 0.111],
10+
}
11+
12+
13+
out = rs.post("glOtc6EzYQTZEt0J18cU1f4Ycdz1H8WWTDVkBQTp1Gv2BWgb",
14+
"memories", dataInput)
15+
16+
print(out)
17+
18+
19+
out = rs.post("glOtc6EzYQTZEt0J18cU1f4Ycdz1H8WWTDVkBQTp1Gv2BWgb",
20+
"memories", dataInput, _ADD_AUTO_INC)
21+
22+
print(out)

src/Rocketstore/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
__version__,
2323
)
2424

25-
from .Rocketstore import Rocketstore
25+
from .Rocketstore import Rocketstore, _ORDER, _ORDER_DESC, _ORDERBY_TIME, _LOCK, _DELETE, _KEYS, _COUNT, _ADD_AUTO_INC, _ADD_GUID, _FORMAT_JSON, _FORMAT_NATIVE, _FORMAT_XML, _FORMAT_PHP

0 commit comments

Comments
 (0)