How to Install and Uninstall python3-pretty-yaml Package on Ubuntu 21.10 (Impish Indri)

Last updated: September 20,2024

1. Install "python3-pretty-yaml" package

Please follow the guidelines below to install python3-pretty-yaml on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install python3-pretty-yaml

2. Uninstall "python3-pretty-yaml" package

Learn how to uninstall python3-pretty-yaml on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove python3-pretty-yaml $ sudo apt autoclean && sudo apt autoremove

3. Information about the python3-pretty-yaml package on Ubuntu 21.10 (Impish Indri)

Package: python3-pretty-yaml
Architecture: all
Version: 20.4.0-1
Priority: optional
Section: universe/python
Source: python-pretty-yaml
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Sascha Steinbiss
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 58
Depends: python3-yaml, python3:any, python3-unidecode
Filename: pool/universe/p/python-pretty-yaml/python3-pretty-yaml_20.4.0-1_all.deb
Size: 17208
MD5sum: 1697ada7e73e8f7d04b830ff00a6d48d
SHA1: 7b6fab685252e900481b3e010b32ef8ce9028816
SHA256: aa88e725a031a0275ca91e574e4d172c7e5a2488f2c8b9b76720060857b9b327
SHA512: 4a0f0a584bb0e70d1a688cd8d0007ee325d2c5619e75b2278f7af60e75ba0a38aacf82d3e90fa8c8148474722eca1ba031d584b361d79a2b523f8a3158300d96
Homepage: https://github.com/mk-fg/pretty-yaml
Description-en: 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.
Description-md5: f1252fd6b9d7c463281be0bd5735c28b