Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wimglenn/oyaml
Ordered YAML: drop-in replacement for PyYAML which preserves dict ordering
https://github.com/wimglenn/oyaml
Last synced: 4 days ago
JSON representation
Ordered YAML: drop-in replacement for PyYAML which preserves dict ordering
- Host: GitHub
- URL: https://github.com/wimglenn/oyaml
- Owner: wimglenn
- License: mit
- Created: 2018-02-21T06:11:18.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2024-11-05T02:26:08.000Z (about 2 months ago)
- Last Synced: 2024-12-12T17:12:43.671Z (11 days ago)
- Language: Python
- Homepage:
- Size: 33.2 KB
- Stars: 171
- Watchers: 5
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
|actions| |codecov| |pypi| |womm|
.. |actions| image:: https://github.com/wimglenn/oyaml/actions/workflows/tests.yml/badge.svg
.. _actions: https://github.com/wimglenn/oyaml/actions/workflows/tests.yml.. |codecov| image:: https://codecov.io/gh/wimglenn/oyaml/branch/master/graph/badge.svg
.. _codecov: https://codecov.io/gh/wimglenn/oyaml.. |pypi| image:: https://img.shields.io/pypi/v/oyaml.svg
.. _pypi: https://pypi.org/project/oyaml.. |womm| image:: https://cdn.rawgit.com/nikku/works-on-my-machine/v0.2.0/badge.svg
.. _womm: https://github.com/nikku/works-on-my-machineoyaml
=====oyaml is a drop-in replacement for `PyYAML `_ which preserves dict ordering. Both Python 2 and Python 3 are supported. Just ``pip install oyaml``, and import as shown below:
.. code-block:: python
import oyaml as yaml
You'll no longer be annoyed by screwed-up mappings when dumping/loading.