Skip to content

Repository files navigation

Developers Toolbox

data-converter

Python library that loads JSON, JSON5, XML, YAML, or TOML into a dictionary, then writes any of those formats.

Install

pip install lupaxa-data-converter

Requires Python 3.10+.

Usage

from lupaxa.data_converter import DataConverter

payload = {"name": "Lupaxa", "formats": ["json", "json5", "xml", "yaml", "toml"]}
converter = DataConverter(payload, data_type="dict")

print(converter.to_json())
print(converter.to_json5())
print(converter.to_xml())
print(converter.to_yaml())
print(converter.to_toml())

This is a library only. There is no console script and no python -m entry point.

Documentation

Site pages live in mkdocs/ and publish to https://data-converter.thelupaxaproject.org/.

make init
make python-install-dev
make mkdocs-serve
The Lupaxa Project Footer

About

Python module that converts data between JSON, XML, and YAML, including dictionary round-trips.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages