ez-yaml-2.0.0
توضیحات
Straighforward wrapper around Ruamel Yaml
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ez-yaml-2.0.0 |
| نام | ez-yaml |
| نسخه کتابخانه | 2.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jeff Hykin |
| ایمیل نویسنده | jeff.hykin@gmail.com |
| آدرس صفحه اصلی | https://github.com/jeff-hykin/ez_yaml |
| آدرس اینترنتی | https://pypi.org/project/ez-yaml/ |
| مجوز | MIT |
# Install
`pip install ez_yaml`
# Use
```python
import ez_yaml
# to_string(obj, options={})
ez_yaml.to_string({"thing": 1, "abc": [ 1,2,3 ]})
# to_object(file_path, options={})
# to_object(string , options={})
ez_yaml.to_object(string='''
thing: 1
abc:
- 1
- 2
- 3
''')
# to_file(obj, file_path, options={})
ez_yaml.to_file(
{"thing": 1, "abc": [ 1,2,3 ]},
file_path="./my_file.yaml",
)
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl ez-yaml-2.0.0:
pip install ez-yaml-2.0.0.whl
نصب پکیج tar.gz ez-yaml-2.0.0:
pip install ez-yaml-2.0.0.tar.gz