Installation¶
Stable release¶
To install json2xml, run this command in your terminal:
$ pip install json2xml
This is the preferred method to install json2xml, as it will always install the most recent stable release.
If you don’t have pip installed, this Python installation guide can guide you through the process.
Using uv (recommended)¶
uv is a fast Python package installer. You can install json2xml using:
$ uv pip install json2xml
From sources¶
The sources for json2xml can be downloaded from the Github repo.
You can either clone the public repository:
$ git clone git://github.com/vinitkumar/json2xml
Or download the tarball:
$ curl -OL https://github.com/vinitkumar/json2xml/tarball/master
Once you have a copy of the source, you can install it with:
$ pip install .
Or for development (editable install):
$ pip install -e .
Development Setup¶
For contributing to json2xml, set up a development environment:
# Create and activate virtual environment (using uv - recommended)
$ uv venv
$ source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install dependencies
$ uv pip install -r requirements-dev.txt
$ uv pip install -e .
Requirements¶
json2xml requires Python 3.10 or later and depends on:
defusedxml- For secure XML parsingurllib3- For fetching JSON from URLs