Name | zjson JSON |
Version |
2023.9.13
JSON |
| download |
home_page | |
Summary | Json Database full async |
upload_time | 2023-09-11 23:37:42 |
maintainer | |
docs_url | None |
author | ZAID |
requires_python | ~=3.6 |
license | |
keywords |
python
json
database
aio
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
<p align="center">
<a href="https://github.com/x72x/zjson/">
<img src="https://dev-zaiddev.pantheonsite.io/zaid/files/AgACAgIAAxkBAAILyWT_j6PAbt8P3F1JiqznohMs.jpg" alt="zjson" width="256">
</a>
<br>
<b>Json Database full async</b>
<br>
<a href="https://github.com/x72x/zjson/tree/main/examples">
Examples
</a>
•
<a href="https://t.me/Y88F8">
News
</a>
</p>
## Aio-Json
> Example
``` python
from zjson import AsyncClient
db = AsyncClient(name="db.json", directory="cache")
async def main():
await db.set(
key="key",
value="value"
)
print(await db.get("key")) # value
await db.set(
key="key2",
value=[1, 2, 3],
expire=10 # expire after 10 seconds
)
await db.sleep(10)
print(await db.get("key2")) # None
db.run(main())
```
### Installing
``` bash
pip3 install -U zjson
```
### Community
- Join the telegram channel: https://t.me/Y88F8
Raw data
{
"_id": null,
"home_page": "",
"name": "zjson",
"maintainer": "",
"docs_url": null,
"requires_python": "~=3.6",
"maintainer_email": "",
"keywords": "python,json,database,aio",
"author": "ZAID",
"author_email": "y8838@hotmail.com",
"download_url": "https://files.pythonhosted.org/packages/7f/52/3a57ef2a30020b8ad5b7b9ea6067ef00f8614b3b6677a45a183f23c4d088/zjson-2023.9.13.tar.gz",
"platform": null,
"description": "\n<p align=\"center\">\n <a href=\"https://github.com/x72x/zjson/\">\n <img src=\"https://dev-zaiddev.pantheonsite.io/zaid/files/AgACAgIAAxkBAAILyWT_j6PAbt8P3F1JiqznohMs.jpg\" alt=\"zjson\" width=\"256\">\n </a>\n <br>\n <b>Json Database full async</b>\n <br>\n <a href=\"https://github.com/x72x/zjson/tree/main/examples\">\n Examples\n </a>\n \u2022\n <a href=\"https://t.me/Y88F8\">\n News\n </a>\n</p>\n\n## Aio-Json\n\n> Example\n\n``` python\nfrom zjson import AsyncClient\n\ndb = AsyncClient(name=\"db.json\", directory=\"cache\")\n\nasync def main():\n await db.set(\n key=\"key\",\n value=\"value\"\n )\n print(await db.get(\"key\")) # value\n await db.set(\n key=\"key2\",\n value=[1, 2, 3],\n expire=10 # expire after 10 seconds\n )\n await db.sleep(10)\n print(await db.get(\"key2\")) # None\n\ndb.run(main())\n\n```\n\n### Installing\n\n``` bash\npip3 install -U zjson\n```\n\n### Community\n\n- Join the telegram channel: https://t.me/Y88F8\n",
"bugtrack_url": null,
"license": "",
"summary": "Json Database full async",
"version": "2023.9.13",
"project_urls": null,
"split_keywords": [
"python",
"json",
"database",
"aio"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "30fc23989d2b79c3cb6c995869b1d0fdc9251198a8a778171037041b9dc818a2",
"md5": "51da8ae24ad34380c508142f46c4b9da",
"sha256": "ca9f1de5b00565e4485abc3d139fc46b322df9faf9be481c2493f01f79065fbd"
},
"downloads": -1,
"filename": "zjson-2023.9.13-py3-none-any.whl",
"has_sig": false,
"md5_digest": "51da8ae24ad34380c508142f46c4b9da",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.6",
"size": 5189,
"upload_time": "2023-09-11T23:37:40",
"upload_time_iso_8601": "2023-09-11T23:37:40.217784Z",
"url": "https://files.pythonhosted.org/packages/30/fc/23989d2b79c3cb6c995869b1d0fdc9251198a8a778171037041b9dc818a2/zjson-2023.9.13-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7f523a57ef2a30020b8ad5b7b9ea6067ef00f8614b3b6677a45a183f23c4d088",
"md5": "f862cc6642c1a4ab4a427926a51c9e31",
"sha256": "2d2c152b1112a10e2149ed05e665c8f087224e13c6403da62ae2786575dece1b"
},
"downloads": -1,
"filename": "zjson-2023.9.13.tar.gz",
"has_sig": false,
"md5_digest": "f862cc6642c1a4ab4a427926a51c9e31",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.6",
"size": 4679,
"upload_time": "2023-09-11T23:37:42",
"upload_time_iso_8601": "2023-09-11T23:37:42.001706Z",
"url": "https://files.pythonhosted.org/packages/7f/52/3a57ef2a30020b8ad5b7b9ea6067ef00f8614b3b6677a45a183f23c4d088/zjson-2023.9.13.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-11 23:37:42",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "zjson"
}