| Name | jmstorage JSON |
| Version |
0.0.1
JSON |
| download |
| home_page | |
| Summary | Key value caching machanism with backends: disk, Sqlite, Redis, MySQL, PostgreSQL. |
| upload_time | 2023-11-13 22:37:05 |
| maintainer | |
| docs_url | None |
| author | JustinMusti |
| requires_python | >=3.8 |
| license | MIT License Copyright (c) 2023 M Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| keywords |
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# jmstorage
 [](https://pypi.org/project/jmstorage/)
Thread safe key:value storage with multiple back-end options.
## Install
```shell
pip install jmstorage
```
## Storage Options
1. disk(local file system)
* Currently, this is the only supported option.
* This is thread safe as the library acquires a thread lock during write operations.
2. Redis
* In Development, will update as it becomes available.
3. Sqlite
* In Development, will update as it becomes available.
4. MySQL
* In Development, will update as it becomes available.
5. PostgreSQL
* In Development, will update as it becomes available.
## How to Use
```python
from jmstorage import Cache
c = Cache(namespace="namespace-value", path="./path_to_local_disk_file/")
# Set Value
c.set("my_key", "my_value")
# Read Value
my_val = c.get("my_key")
# > "my_value"
# Pop Value
my_val = c.pop("my_key")
# > "my_value"
c.get("my_key")
# > None
# Delete Value
c.delete("my_key")
c.get("my_key")
# > None
# Truncate Storage
c.truncate()
c.get("my_key")
# > None
```
Raw data
{
"_id": null,
"home_page": "",
"name": "jmstorage",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "",
"author": "JustinMusti",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/12/21/7a3a8c4da55e8b58699133a3737fb3530462b166d3cd2d2d845f8347c92b/jmstorage-0.0.1.tar.gz",
"platform": null,
"description": "# jmstorage\n\n\n [](https://pypi.org/project/jmstorage/)\n\nThread safe key:value storage with multiple back-end options.\n\n## Install \n\n```shell\npip install jmstorage\n\n```\n\n\n## Storage Options\n\n1. disk(local file system) \n * Currently, this is the only supported option.\n * This is thread safe as the library acquires a thread lock during write operations.\n2. Redis \n * In Development, will update as it becomes available.\n3. Sqlite\n * In Development, will update as it becomes available.\n4. MySQL\n * In Development, will update as it becomes available.\n5. PostgreSQL\n * In Development, will update as it becomes available.\n\n\n## How to Use\n\n```python\nfrom jmstorage import Cache\n\nc = Cache(namespace=\"namespace-value\", path=\"./path_to_local_disk_file/\")\n\n# Set Value\nc.set(\"my_key\", \"my_value\")\n\n# Read Value\nmy_val = c.get(\"my_key\")\n# > \"my_value\"\n\n# Pop Value\nmy_val = c.pop(\"my_key\")\n# > \"my_value\"\nc.get(\"my_key\")\n# > None\n\n\n# Delete Value\nc.delete(\"my_key\")\nc.get(\"my_key\")\n# > None\n\n# Truncate Storage\nc.truncate()\nc.get(\"my_key\")\n# > None\n```\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2023 M Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": "Key value caching machanism with backends: disk, Sqlite, Redis, MySQL, PostgreSQL.",
"version": "0.0.1",
"project_urls": {
"Bug Tracker": "https://github.com/justinmusti/jmstorage/issues",
"Homepage": "https://github.com/justinmusti/jmstorage"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "503ce88cec0210203fb56804b1489f848c24f686478326bdca68f44294cb91a7",
"md5": "3968f6605834a0ea5b6956628b42bf6e",
"sha256": "451a683ce5826d695b77806b11f61969b7c8d8a2dd663392cf9f025f37c365f7"
},
"downloads": -1,
"filename": "jmstorage-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3968f6605834a0ea5b6956628b42bf6e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 6410,
"upload_time": "2023-11-13T22:37:03",
"upload_time_iso_8601": "2023-11-13T22:37:03.398441Z",
"url": "https://files.pythonhosted.org/packages/50/3c/e88cec0210203fb56804b1489f848c24f686478326bdca68f44294cb91a7/jmstorage-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "12217a3a8c4da55e8b58699133a3737fb3530462b166d3cd2d2d845f8347c92b",
"md5": "7dc9f785ee3aef728029c07a3a47994a",
"sha256": "912057bf3c62ed17689aa1b894f87864488a67573a276c28aa001166680c7ea7"
},
"downloads": -1,
"filename": "jmstorage-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "7dc9f785ee3aef728029c07a3a47994a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 6660,
"upload_time": "2023-11-13T22:37:05",
"upload_time_iso_8601": "2023-11-13T22:37:05.050255Z",
"url": "https://files.pythonhosted.org/packages/12/21/7a3a8c4da55e8b58699133a3737fb3530462b166d3cd2d2d845f8347c92b/jmstorage-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-13 22:37:05",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "justinmusti",
"github_project": "jmstorage",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "jmstorage"
}