Skip to main content

Transforms (Finnish: muuntuu) helper tool.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

muuntuu-2025.12.5.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

muuntuu-2025.12.5-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file muuntuu-2025.12.5.tar.gz.

File metadata

  • Download URL: muuntuu-2025.12.5.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.2

File hashes

Hashes for muuntuu-2025.12.5.tar.gz
Algorithm Hash digest
SHA256 9d7138a31b92b9937dac654568fa1706ac8d410fc6cdda6961bfcff77d24aa81
MD5 dd83a90ce90f227fde8ae0183c356131
BLAKE2b-256 07baae544eabb5d75d7e3bded43543d5f8cd5b05012877ea150f1dec285075cd

See more details on using hashes here.

File details

Details for the file muuntuu-2025.12.5-py3-none-any.whl.

File metadata

File hashes

Hashes for muuntuu-2025.12.5-py3-none-any.whl
Algorithm Hash digest
SHA256 dcaaad0106a4c6000880369479d96eee3df06a6a9e9370977de1b8efe786f975
MD5 5192fde4e9676bda4e8e6c9b70bb2c34
BLAKE2b-256 8bd3cd26e77bd199380680540d94273193e4c55838d6fe1854d4def5e7546d21

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page