A simple python package to convert json to xml data
Project description
##About
[![Build Status](https://travis-ci.org/vinitkumar/json2xml.svg?branch=master)](https://travis-ci.org/vinitkumar/json2xml)
A Simple python utility to convert JSON to XML(Supports 3.5.x and 3.6.x). It can be used to convert a json file to xml or from an URL that returns json data.
### How to install
` pip3 install json2xml `
### Usage
#### Command Line
` python -m src.cli --file="examples/example.json" python -m src.cli --url="https://coderwall.com/vinitcool76.json" `
#### Inline in Code
From a file
`python from src.json2xml import Json2xml data = Json2xml.fromjsonfile('examples/example.json').data data_object = Json2xml(data) data_object.json2xml() #xml output `
From an URL
`python from src.json2xml import Json2xml data = Json2xml.fromurl('https://coderwall.com/vinitcool76.json').data data_object = Json2xml(data) data_object.json2xml() #xml output `
### Bugs, features
If you find any bug, open a [new ticket](https://github.com/vinitkumar/json2xml/issues/new)
If you have an intresting Idea for contribution, open a ticket for that too and propose the idea. If we agree, you can open a pull request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file json2xml-1.2.5.tar.gz
.
File metadata
- Download URL: json2xml-1.2.5.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3aac398edd89b7bcb3948123a12e137a30ab8de34f32348a6eb25cb98e06d7d |
|
MD5 | 06544084d8361641b008ba1c1f3a57d5 |
|
BLAKE2b-256 | e717d7bee4eccefddb538276557acc9c731ba3597790d3f073aebf58d6bdcc7c |
File details
Details for the file json2xml-1.2.5-py3-none-any.whl
.
File metadata
- Download URL: json2xml-1.2.5-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42be3eff42d3faf6a1803a6c2e2387408a14a75af01a627ab1210b4323445e34 |
|
MD5 | f397e8d61369acca8ff40a12ae16c5f5 |
|
BLAKE2b-256 | 3325c47be4c4d15bd92e640be28804672a2f077428df5462f898ed28a97d0f20 |