betterjsondb-0.1.9
توضیحات
A useful library for simplifying work with .json files.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | betterjsondb-0.1.9 |
| نام | betterjsondb |
| نسخه کتابخانه | 0.1.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Dallas |
| ایمیل نویسنده | aleksey.c5@yandex.ru |
| آدرس صفحه اصلی | https://github.com/DarkJoij/betterjsondb |
| آدرس اینترنتی | https://pypi.org/project/betterjsondb/ |
| مجوز | - |
# Betterjson
[Library](https://github.com/DarkJoij/betterjsondb) for easier working with JSON files in Python.
# Quick example
```json
{"names": ["Alex", "Allan"]}
```
```py
import betterjsondb
db = betterjsondb.connect(file="tests.json", prefix="~") # Name of file and prefix can be custom
print( # In concole you'll see:
db.get("all"), # {'names': ['Alex', 'Allan']}
db.push("cars", {"BMW": "car", "Tosiba": "not_car"}, callback=True), # True
db.update("cars", "=", {"BMW": "car"}, callback=True), # True
db.delete("names", callback=True), # True
db.get("all") # {'cars': {'BMW': 'car'}}
)
```
# Important information
27.12.2021 library updated using [Python 3.10](https://www.python.org/downloads/release/python-3100/). So now its strictly requere it on your PC.
# Changelog:
#### v. 0.1.8:
After connect file if its not exists library will create it.
Added warning to not existing file.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl betterjsondb-0.1.9:
pip install betterjsondb-0.1.9.whl
نصب پکیج tar.gz betterjsondb-0.1.9:
pip install betterjsondb-0.1.9.tar.gz