Skip to main content

Project Logo

The Lupaxa Developers Toolbox
Part of The Lupaxa Project


lupaxa-data-converter

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

Built for scripts and tools used by The Lupaxa Project.

The PyPI name is lupaxa-data-converter. The import path is lupaxa.data_converter. This is a library only — there is no console script and no python -m entry point.

Features

  • Load JSON, JSON5, XML, YAML, TOML, or a dictionary into one DataConverter
  • Dump the loaded mapping to any of those formats
  • Two passes through a standard dict — no pairwise converters
  • Fully typed, linted, formatted, and tested

Installation

From PyPI

pip install lupaxa-data-converter

From source (development mode)

pip install -e ".[dev]"

Requires Python 3.10+. Runtime dependencies: PyYAML, defusedxml, json5, and tomli-w (tomli on Python 3.10). lupaxa is a namespace package — there is no lupaxa/__init__.py.

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())

Development

Clone the repository and install with Make:

make init                # first-time makefile-skills checkout
make python-install-dev  # editable install with [dev]
make python-check        # lint, type-check, and test
make mkdocs-serve        # local docs site

Documentation: https://data-converter.thelupaxaproject.org/.

The Lupaxa Project Footer

Download files

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

Source Distribution

lupaxa_data_converter-0.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

lupaxa_data_converter-0.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file lupaxa_data_converter-0.1.0.tar.gz.

File metadata

  • Download URL: lupaxa_data_converter-0.1.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for lupaxa_data_converter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0cabd5f26cc4a63246c6c5a588f71b4b35f8d528477e7d839536accbb7548a60
MD5 d444fc0274e76ba6e0ebffd8c0831bf9
BLAKE2b-256 36eba5a861d9973b7cfb4a1738eea4e7b84239b8c799d49044495cbd54449acb

See more details on using hashes here.

Provenance

The following attestation bundles were made for lupaxa_data_converter-0.1.0.tar.gz:

Publisher: generate-release.yml on lupaxa-developers-toolbox/data-converter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lupaxa_data_converter-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lupaxa_data_converter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af9c6b51d327e719049304c25c527448dc205f694890ade71491235ddfee4db3
MD5 487561a38e7f136e64e3065737e908cb
BLAKE2b-256 c20c5614e1af4ce1400f3fd26fdca96a38ea87c751913f599909429c35005106

See more details on using hashes here.

Provenance

The following attestation bundles were made for lupaxa_data_converter-0.1.0-py3-none-any.whl:

Publisher: generate-release.yml on lupaxa-developers-toolbox/data-converter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 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