python-pretty-yaml 21.10.1-1 source package in Ubuntu
Changelog
python-pretty-yaml (21.10.1-1) unstable; urgency=medium * New upstream release. -- Sascha Steinbiss <email address hidden> Thu, 04 Nov 2021 10:10:09 +0100
Upload details
- Uploaded by:
- Sascha Steinbiss
- Uploaded to:
- Sid
- Original maintainer:
- Sascha Steinbiss
- Architectures:
- all
- Section:
- misc
- Urgency:
- Medium Urgency
See full publishing history Publishing
Series | Published | Component | Section | |
---|---|---|---|---|
Mantic | release | universe | misc | |
Lunar | release | universe | misc | |
Jammy | release | universe | misc |
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
python-pretty-yaml_21.10.1-1.dsc | 2.0 KiB | 262ac98ce979bfd6e27b84a72c66040d2c00f1f8a7018ceb5c722b3f28fc644e |
python-pretty-yaml_21.10.1.orig.tar.gz | 20.0 KiB | c6519fee13bf06e3bb3f20cacdea8eba9140385a7c2546df5dbae4887f768383 |
python-pretty-yaml_21.10.1-1.debian.tar.xz | 2.5 KiB | 1858b001ed36a091d3f17a09865b98b0fd9e356db291c40075b9ae5547fa909a |
Available diffs
- diff from 21.8.3-2 to 21.10.1-1 (10.0 KiB)
No changes file available.
Binary packages built by this source
- python3-pretty-yaml: module to produce pretty and readable YAML-serialized data (Python 3)
YAML is generally nice and easy format to read if it was written by humans.
PyYAML can a do fairly decent job of making stuff readable. pyaml tries to
improve on that a bit, with the following tweaks:
.
- Most human-friendly representation options in PyYAML get picked as
defaults.
- Does not dump "null" values, if possible, replacing these with just empty
strings, which have the same meaning but reduce visual clutter and are
easier to edit.
- Dicts, sets, OrderedDicts, defaultdicts, namedtuples, etc are
representable and get sorted on output (OrderedDicts and namedtuples keep
their ordering), so that output would be as diff-friendly as possible,
and not arbitrarily depend on Python internals.
- It appears that at least recent PyYAML versions also do such sorting for
Python dicts.
- List items get indented, as they should be.
- bytestrings that can't be auto-converted to unicode raise error, as yaml
has no "binary bytes" (i.e. unix strings) type.
- Attempt is made to pick more readable string representation styles,
depending on the value.
- "force_embed" option to avoid having &id stuff scattered all over the
output (which might be beneficial in some cases, hence the option).
- "&id" anchors, if used, get labels from the keys they get attached to, not
just use meaningless enumerators.
- "string_val_style" option to only apply to strings that are values, not
keys.
- Has an option to add vertical spacing (empty lines) between keys on
different depths, to make output much more seekable.
.
This package installs the Python 3 version.