detadict-0.1.0
توضیحات
Python dict with Deta backend
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | detadict-0.1.0 |
| نام | detadict |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | ilhomidin |
| ایمیل نویسنده | itilhomidin@yandex.com |
| آدرس صفحه اصلی | https://github.com/ilhomidin/detadict |
| آدرس اینترنتی | https://pypi.org/project/detadict/ |
| مجوز | MIT |
# detadict
__Goal:__ create dictionary that fully compatible with native python dictionary interface.
__Example:__
```python
from detadict import detadict
users = detadict()
users["John"] = {
"id": 1,
"sex": "male"
}
users["Katy"] = {
"id": 2,
"sex": "female"
}
```
__Requirements:__
🤦♂️ All you need to do is set the environment variable `DETA_PROJECT_KEY` with the Deta project key.
__Currently not supported__:
- Update of mutable values
```python
users["John"]["sex"] = "female"
print(users["John"]) # {"id": 1, "sex": "male"}
```
- `copy` and `setdefault` methods
```python
# raise NotImplementedError
users.copy()
users.setdefault("Bob", {})
```
__Installing__:
```bash
pip install detadict
```
نیازمندی
| مقدار | نام |
|---|---|
| >=1.0.0,<2.0.0 | deta |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl detadict-0.1.0:
pip install detadict-0.1.0.whl
نصب پکیج tar.gz detadict-0.1.0:
pip install detadict-0.1.0.tar.gz