Skip to main content

Muuntuu

Transforms (Finnish: muuntuu) helper tool.

Usage:

❯ muuntuu
usage: muuntuu [-h] [--source FILE] [--target FILE] [--debug] [--policy-writer POLICY_WRITER]
               [--general-offset GEN_OFFSET] [--mapping-offset MAP_OFFSET] [--sequence-offset SEQ_OFFSET]
               [--width WIDTH] [--default-flow-style] [--sort-base] [--force] [--quiet] [--version]
               [SOURCE_FILE] [TARGET_FILE]

Transforms (Finish: muuntuu) helper tool.

positional arguments:
  SOURCE_FILE           JSON or YAML source as positional argument
  TARGET_FILE           JSON or YAML target as positional argument

options:
  -h, --help            show this help message and exit
  --source FILE, -s FILE
                        JSON or YAML source
  --target FILE, -t FILE
                        JSON or YAML target
  --debug, -d           work in debug mode (default: False), overwrites any environment variable MUUNTUU_DEBUG value
  --policy-writer POLICY_WRITER
                        [YAML only] select writer policy from (safe, r[ound-]t[rip], or "empty") (default: safe)
  --general-offset GEN_OFFSET
                        general offset (indent) on output (default: 2) - verify the amount yourself, please
  --mapping-offset MAP_OFFSET
                        [YAML only] mapping offset (indent) on output (default: 2) - verify the amount yourself, please
  --sequence-offset SEQ_OFFSET
                        [YAML only] sequence offset (indent) on output (default: 2) - verify the amount yourself, please
  --width WIDTH         [YAML only] constrain width on output (default: 150) - verify the amount yourself, please
  --default-flow-style  [YAML only] select default flow style on output (default: False)
  --sort-base           [YAML only] sort base mapping type on output (default: False)
  --force, -f           overwrite existing targets (default: False)
  --quiet, -q           work in quiet mode (default: False)
  --version, -V         display version and exit

Note: some combinations of writer policy, offsets, and width may lead to invalid YAML as documented in test/fixtures/offsets-width.yaml where the options --general-offset 3 --mapping-offset 1 --policy-writer rt --sequence-offset 2 --width 20 were used when deriving from test/fixtures/offsets-width.yaml:

foo:
 bar:
    - baz
    - quux1 asd asd
   asd adssssssss
    - quux2
    - quux3

Version

❯ muuntuu --vesion
2025.9.14

Status

Prototype.

Metadata

Release files for muuntuu 2025.12.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for muuntuu 2025.12.5
File Size Uploaded
muuntuu-2025.12.5.tar.gz 10.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for muuntuu 2025.12.5
File Interpreter ABI Platform
muuntuu-2025.12.5-py3-none-any.whl Python 3 none any Details

Total release size: 18.6 kB

Release files / muuntuu-2025.12.5.tar.gz

Download URL muuntuu-2025.12.5.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9d7138a31b92b9937dac654568fa1706ac8d410fc6cdda6961bfcff77d24aa81
BLAKE2b-256 checksum
How to use checksums
07baae544eabb5d75d7e3bded43543d5f8cd5b05012877ea150f1dec285075cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.2

Release files / muuntuu-2025.12.5-py3-none-any.whl

Download URL muuntuu-2025.12.5-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dcaaad0106a4c6000880369479d96eee3df06a6a9e9370977de1b8efe786f975
BLAKE2b-256 checksum
How to use checksums
8bd3cd26e77bd199380680540d94273193e4c55838d6fe1854d4def5e7546d21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.2

Release history Release notifications | RSS feed

This release

2025.12.5 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page