autosave-1.0.0.post1
توضیحات
Autosaving dictionary-like file objects
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | autosave-1.0.0.post1 |
| نام | autosave |
| نسخه کتابخانه | 1.0.0.post1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Maximillian Strand |
| ایمیل نویسنده | maximillian.strand@protonmail.com |
| آدرس صفحه اصلی | https://gitlab.com/deepadmax/autosave |
| آدرس اینترنتی | https://pypi.org/project/autosave/ |
| مجوز | - |
# autosave
## Installation
```sh
pip install autosave
```
## Example
```py
from autosave import File, AppStorage
# When editing multiple entries,
# use a with statement to only save on exit.
with File('my_file.json') as data:
data['dessert'] = 'pancakes'
data['genre'] = 'jazz'
# By indexing entries on their own, the file is saved on each edit.
# This is adviced against if you're editing multiple entries at a time,
# as it is much less performant.
file = File('my_file.json')
file['garbage'] = 'smooth' + file['genre']
# Get access to the right directories for your app,
# by using this wrapper around `appdirs`
app = AppStorage('MyApp')
app.data / 'plugins/baguette.json'
```
نیازمندی
| مقدار | نام |
|---|---|
| >=1.4.4,<2.0.0 | appdirs |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9,<4.0 | Python |
نحوه نصب
نصب پکیج whl autosave-1.0.0.post1:
pip install autosave-1.0.0.post1.whl
نصب پکیج tar.gz autosave-1.0.0.post1:
pip install autosave-1.0.0.post1.tar.gz