Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
README.md | 2024-04-03 | 1.5 kB | |
v0.18.0 source code.tar.gz | 2024-04-03 | 32.7 kB | |
v0.18.0 source code.zip | 2024-04-03 | 46.7 kB | |
Totals: 3 Items | 81.0 kB | 1 |
Breaking changes:
- Support for Python 3.7 has been dropped.
- Multiple small changes to the Python API when using Remarshal as a library. For example, the order of arguments to the function
remarshal
has changed. A type checker like mypy or Pyright can help you upgrade. We hope to make this the biggest change before the API is declared stable in version 1.0. - Remarshal finally encodes and decodes YAML as YAML 1.2. Version 0.17.1 and earlier worked with YAML 1.1. This means no more "Norway problem" (unquoted
no
being decoded as boolean false). Remarshal can now correctly process GitHub Actions YAML. We have migrated from PyYAML to ruamel.yaml. The option--sort-keys
no longer affects YAML output due to lack of support in the new YAML library. Because ruamel.yaml is not yet considered stable, the 1.0 release is postponed.
Non-breaking changes:
- TOML decoding speed-up: TOML decoding should be at least 10× faster on average. Encoding is unaffected.
- There are new format command-line options
-f
/--from
and-t
/--to
like in Pandoc and iconv(1). We have hidden (but kept)-if
and-of
with a single dash. Those are legacy options from the Go days of Remarshal. - A new
--verbose
command-line option has been added for debugging. - The command-line interface and the help message have color. Color is used where appropriate. You can disable it by setting the environment variable
NO_COLOR
. - Remarshal is now tested in PyPy and on macOS.