######## ytools3 ######## .. start short_desc .. documentation-summary:: :meta: .. end short_desc This is a port of the Python 2-only ``ytools`` ( https://github.com/yaccob/ytools ) to Python 3. .. start shields .. only:: html .. list-table:: :stub-columns: 1 :widths: 10 90 * - Docs - |docs| |docs_check| * - Tests - |actions_linux| |actions_windows| |actions_macos| |coveralls| * - PyPI - |pypi-version| |supported-versions| |supported-implementations| |wheel| * - Activity - |commits-latest| |commits-since| |maintained| |pypi-downloads| * - QA - |codefactor| |actions_flake8| |actions_mypy| * - Other - |license| |language| |requires| .. |docs| rtfd-shield:: :project: ytools3 :alt: Documentation Build Status .. |docs_check| actions-shield:: :workflow: Docs Check :alt: Docs Check Status .. |actions_linux| actions-shield:: :workflow: Linux :alt: Linux Test Status .. |actions_windows| actions-shield:: :workflow: Windows :alt: Windows Test Status .. |actions_macos| actions-shield:: :workflow: macOS :alt: macOS Test Status .. |actions_flake8| actions-shield:: :workflow: Flake8 :alt: Flake8 Status .. |actions_mypy| actions-shield:: :workflow: mypy :alt: mypy status .. |requires| image:: https://dependency-dash.repo-helper.uk/github/domdfcoding/ytools3/badge.svg :target: https://dependency-dash.repo-helper.uk/github/domdfcoding/ytools3/ :alt: Requirements Status .. |coveralls| coveralls-shield:: :alt: Coverage .. |codefactor| codefactor-shield:: :alt: CodeFactor Grade .. |pypi-version| pypi-shield:: :project: ytools3 :version: :alt: PyPI - Package Version .. |supported-versions| pypi-shield:: :project: ytools3 :py-versions: :alt: PyPI - Supported Python Versions .. |supported-implementations| pypi-shield:: :project: ytools3 :implementations: :alt: PyPI - Supported Implementations .. |wheel| pypi-shield:: :project: ytools3 :wheel: :alt: PyPI - Wheel .. |license| github-shield:: :license: :alt: License .. |language| github-shield:: :top-language: :alt: GitHub top language .. |commits-since| github-shield:: :commits-since: v3.0.1 :alt: GitHub commits since tagged version .. |commits-latest| github-shield:: :last-commit: :alt: GitHub last commit .. |maintained| maintained-shield:: 2022 :alt: Maintenance .. |pypi-downloads| pypi-shield:: :project: ytools3 :downloads: month :alt: PyPI - Downloads .. end shields Features --------- * Output ``yaml`` as ``json`` or ``python`` * Output ``json`` as ``yaml`` or ``python`` (provided that there are no duplicate mapping entry in the ``json`` source) * Extract particular nodes from ``yaml`` and ``json`` files. + If ``yaml`` is used as output format (default) the output is a valid ``yaml`` document. * Validate ``yaml`` and ``json`` documents. + The ``json-schema`` can be provided in ``yaml`` format as well, which improves readability and writability. * Preserve order of mapping-keys in ``yaml`` and ``json`` output. * Multi-document support + Multiple input files - ... as well as multiple ``yaml`` documents within a file - ... and a combination of both Installation --------------- .. start installation .. installation:: ytools3 :pypi: :github: .. end installation .. toctree:: :hidden: Home .. toctree:: :maxdepth: 3 API Reference contributing license Source .. sidebar-links:: :caption: Links :github: :pypi: ytools3 .. start links .. only:: html View the :ref:`Function Index ` or browse the `Source Code <_modules/index.html>`__. :github:repo:`Browse the GitHub Repository ` .. end links