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
Install
Flamel is available in the cheese shop: https://pypi.org/project/flamel/
You can install it with pip install flamel
See it in action
$ cat foo.yaml
things:
- thing1
- thing2
other:
mapping: 9999
$ flamel foo.yaml
{
"things": [
"thing1",
"thing2"
],
"other": {
"mapping": 9999
}
}
$ flamel foo.yaml > foo.json
$ flamel foo.json
things:
- thing1
- thing2
other:
mapping: 9999
Metadata
Release files for flamel 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| flamel-0.2.1.tar.gz | 7.3 kB | Without provenance | Details |
Release files / flamel-0.2.1.tar.gz
| Download URL | flamel-0.2.1.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de8f5047c89cfb1d7e7b8e808fbae189ce25a195f68633972d4a236d84d5def2
|
|
BLAKE2b-256 checksum How to use checksums |
2397484b02359f4f54edbf6ae1a781c13013ea8c771b30ec9af73010f080f235
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.4.3 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.8
|
Security for flamel 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.