-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: access and usage of contansts feature: added samples usages feature: update readme
- Loading branch information
Showing
16 changed files
with
99 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
__pycache__ | ||
src/Rocketstore/test | ||
.venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ keywords: | |
- file | ||
- rocket | ||
license: MIT | ||
version: 0.0.6 | ||
version: 0.0.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "Rocket-Store" | ||
version = "0.0.6" | ||
version = "0.0.7" | ||
authors = [ | ||
{ name="Anton Sychev", email="[email protected]" }, | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Metadata-Version: 2.1 | ||
Name: Rocket-Store | ||
Version: 0.0.5 | ||
Version: 0.0.7 | ||
Summary: Using the filesystem as a searchable database. | ||
Author-email: Anton Sychev <[email protected]> | ||
License: Rocket Store | ||
|
@@ -90,18 +90,31 @@ Compare Rocket-Store, SQL and file system terms: | |
To use Rocketstore, you must first import the library: | ||
|
||
```python | ||
from Rocketstore import Rocketstore, _FORMAT_JSON | ||
from Rocketstore import Rocketstore | ||
|
||
rs = Rocketstore() | ||
``` | ||
|
||
usage of constants: | ||
```python | ||
|
||
#method 1: | ||
rs = Rocketstore() | ||
rs.post(..., rs._FORMAT_JSON) | ||
|
||
#or | ||
|
||
rs.post(..., Rocketstore._FORMAT_JSON) | ||
|
||
``` | ||
|
||
|
||
### Post | ||
|
||
```python | ||
rs.post(collection="delete_fodders1", key="1", record={"some":"json input"}, flags=_FORMAT_JSON) | ||
rs.post(collection="delete_fodders1", key="1", record={"some":"json input"}, flags=Rocketstore._FORMAT_JSON) | ||
# or | ||
rs.post("delete_fodders1", "1", {"some":"json input"}, _FORMAT_JSON) | ||
rs.post("delete_fodders1", "1", {"some":"json input"}, Rocketstore._FORMAT_JSON) | ||
``` | ||
|
||
Stores a record in a collection identified by a unique key | ||
|
@@ -195,10 +208,10 @@ __Options__: | |
* data_format: Specify which format the records are stored in. Values are: _FORMAT_NATIVE - default. and RS_FORMAT_JSON - Use JSON data format. | ||
|
||
```python | ||
rs.options(data_format=_FORMAT_JSON) | ||
rs.options(data_format=Rocketstore._FORMAT_JSON) | ||
# or | ||
rs.options(**{ | ||
"data_format": _FORMAT_JSON, | ||
"data_format": Rocketstore._FORMAT_JSON, | ||
... | ||
}) | ||
``` | ||
|
@@ -224,9 +237,13 @@ Contributions are welcome. Please open an issue to discuss what you would like t | |
|
||
### Publish to Pypi | ||
|
||
***Local:*** | ||
```shell | ||
python -m pip install build twine | ||
python3 -m build | ||
twine check dist/* | ||
twine upload dist/* | ||
``` | ||
|
||
***Live:*** | ||
No need do nothing GitHub have Workflow action its publish auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,11 +8,11 @@ | |
Desc: Versions | ||
""" | ||
|
||
__title__ = "RocketStore" | ||
__title__ = "Rocketstore" | ||
__description__ = "Rocket Store (Python) - Fast and Simple Database" | ||
__url__ = "https://github.com/klich3/rocket-store-python" | ||
__version__ = "0.0.6" | ||
__build__ = 0x000022 | ||
__version__ = "0.0.7" | ||
__build__ = 0x000029 | ||
__author__ = "Anton Sychev" | ||
__author_email__ = "[email protected]" | ||
__copyright__ = "Copyright Simon Riget" |
Oops, something went wrong.