anyser-0.2.0
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | anyser-0.2.0 |
| نام | anyser |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/Cologler/anyser-python |
| آدرس اینترنتی | https://pypi.org/project/anyser/ |
| مجوز | MIT License |
# anyser
Common interfaces for multiple serialization formats.
## API
- `dumps(obj, format: str, **options) -> str`
- `dumpb(obj, format: str, **options) -> bytes`
- `loads(s: str, format: str, **options) -> object`
- `loadb(b: bytes, format: str, **options) -> object`
format canbe:
| Format | Data format | requires |
|:-------|:------------------------|:------------------------|
| json | `json`, `.json` | |
| pickle | `pickle` | |
| xml | `xml`, `.xml` | |
| json5 | `json5`, `.json5` | install `anyser[json5]` |
| toml | `toml`, `.toml` | install `anyser[toml]` |
| yaml | `yaml`, `.yaml`, `.yml` | install `anyser[yaml]` |
نیازمندی
| مقدار | نام |
|---|---|
| - | bencode.py |
| - | bson |
| - | json5 |
| - | toml |
| - | pyyaml |
نحوه نصب
نصب پکیج whl anyser-0.2.0:
pip install anyser-0.2.0.whl
نصب پکیج tar.gz anyser-0.2.0:
pip install anyser-0.2.0.tar.gz