Skip to main content

Flips yaml input to json and vice versa

Project description

flamel - flip YAML to JSON, and/or JSON to YAML

Just like Nicholas Flamel, who could simply grab a pile of lead and turn it in to gold when he needed gold, flamel will turn your pile of YAML in to JSON when you need JSON. It will also turn your JSON in to YAML if that's what you want it to do.

A few features:

  • Tries to detect input and flip to the alternative
  • Maintains the order of keys in mappings from input to output


Flamel is available in the cheese shop:

You can install it with pip install flamel

See it in action

$ cat foo.yaml
  - thing1
  - thing2
  mapping: 9999
$ flamel foo.yaml
  "things": [
  "other": {
    "mapping": 9999
$ flamel foo.yaml > foo.json
$ flamel foo.json
- thing1
- thing2
  mapping: 9999

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

flamel-0.2.1.tar.gz (7.3 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page