Skip to main content

To convert json data 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

Project details


Download files

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

Source Distribution

json2xml-1.2.4.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

json2xml-1.2.4-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file json2xml-1.2.4.tar.gz.

File metadata

  • Download URL: json2xml-1.2.4.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for json2xml-1.2.4.tar.gz
Algorithm Hash digest
SHA256 2635507ebfcaed3accc4f99ff35ce6fce6543b23c47ff15a4ce31fe676465f14
MD5 f38475049d12877d61a1c77f6ca12b9c
BLAKE2b-256 aa9347723624fa0a1bd6709560589174104cda72bd2254fe2efde058c7b7bbaf

See more details on using hashes here.

File details

Details for the file json2xml-1.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for json2xml-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 78ef5161b41a3efa422593e82e722fa8c928c60060a891470820847313ca9d14
MD5 36ca16911e043ddc2f98c7de10cbfcab
BLAKE2b-256 6d74ac46a469507b13d43626dfa8e87b47f9ccf84d1a0a3f77d74c7d0da1aaf6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page