aspy.yaml-1.3.0


توضیحات

A few extensions to pyyaml.
ویژگی مقدار
سیستم عامل -
نام فایل aspy.yaml-1.3.0
نام aspy.yaml
نسخه کتابخانه 1.3.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Anthony Sottile
ایمیل نویسنده asottile@umich.edu
آدرس صفحه اصلی https://github.com/asottile/aspy.yaml
آدرس اینترنتی https://pypi.org/project/aspy.yaml/
مجوز MIT
[![Build Status](https://asottile.visualstudio.com/asottile/_apis/build/status/asottile.aspy.yaml?branchName=master)](https://asottile.visualstudio.com/asottile/_build/latest?definitionId=4&branchName=master) [![Azure DevOps coverage](https://img.shields.io/azure-devops/coverage/asottile/asottile/4/master.svg)](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=4&branchName=master) aspy.yaml ========= Some extensions to pyyaml. ## Installation `pip install aspy.yaml` ### aspy.yaml.ordered_load yaml.load which respects order for dictionaries in the yaml file. ```python >>> from aspy.yaml import ordered_load >>> ordered_load( 'foo: bar\n' 'bar: baz\n' 'herp: derp\n' ) OrderedDict([('foo', 'bar'), ('bar', 'baz'), ('herp', 'derp')]) ``` ### aspy.yaml.ordered_dump yaml.dump which respects order for dictionaries in the yaml file. ```python >>> from aspy.yaml import ordered_dump >>> print(ordered_dump( OrderedDict((('a', '1'), ('b', '2'), ('c', '3'), ('d', '4'))), default_flow_style=False, )) a: '1' b: '2' c: '3' d: '4' ```


نیازمندی

مقدار نام
- pyyaml


زبان مورد نیاز

مقدار نام
>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* Python


نحوه نصب


نصب پکیج whl aspy.yaml-1.3.0:

    pip install aspy.yaml-1.3.0.whl


نصب پکیج tar.gz aspy.yaml-1.3.0:

    pip install aspy.yaml-1.3.0.tar.gz