Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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-machine

oyaml
=====

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.