You are here: Home / LBN / Up2date / DevOps / BastionLinux 36 / python3-yamlordereddictloader-0.4.2-1.lbn36.noarch

python3-yamlordereddictloader-0.4.2-1.lbn36.noarch

Package Attributes
RPM  python3-yamlordereddictloader-0.4.2-1.lbn36.noarch.rpm Architecture  noarch Size  10767 Created  2025/08/24 03:22:48 UTC
Package Specification
Summary YAML loader and dumper for PyYAML allowing to keep keys order.
Group Unspecified
License ZPL
Home Page https://pypi.org/project/yamlordereddictloader
Description

DEPRECATED: the Phynix/yamlloader project provide an improved version of this library with unit tests, performance improvements (by providing access to the C implementation of PyYAML) and is more actively developed. You should use it!

This module provide a loader and a dumper for PyYAML allowing to keep items order when loading a file (by putting them in OrderedDict objects) and to manage OrderedDict objects when dumping to a file. The loader is based on stackoverflow topic (thanks to Eric Naeseth): http:/stackoverflow.com/questions/5121931/in-python-how-can-you-load-yaml-mappings-as-ordereddicts#answer-5121963 Self promotion: I use it a lot with clg, which allows to generate command-line definition from a configuration file, for keeping order of subcommands, options and arguments in the help message!

Loader usage import yaml import yamlordereddictloader

data = yaml.load(open(myfile.yml), Loader=yamlordereddictloader.Loader) No

Requires
rpmlib(PayloadFilesHavePrefix)  
rpmlib(PayloadIsZstd)  
rpmlib(CompressedFileNames)  
rpmlib(PartialHardlinkSets)  
rpmlib(FileDigests)  
Provides
python-yamlordereddictloader
python3-yamlordereddictloader
python3.10-yamlordereddictloader
python3.10dist(yamlordereddictloader)
python3dist(yamlordereddictloader)
Obsoletes
python-yamlordereddictloader

Document Actions