An open API service indexing awesome lists of open source software.

https://github.com/marcelnicolay/simplexml

Simple and fast XML encoder/decoder for Python
https://github.com/marcelnicolay/simplexml

Last synced: about 1 year ago
JSON representation

Simple and fast XML encoder/decoder for Python

Awesome Lists containing this project

README

          

SimpleXML - encoder/decoder
======================

![Travis CI](https://api.travis-ci.org/marcelnicolay/simplexml.png)

SimpleXML is a simple and fast XML encoder/decoder for Python.

# Basic usage

# dictionary to XML

```python
import simplexml
person = {'person':{'name':'joaquim','age':15,'cars':[{'id':1},{'id':2}]}}
simplexml.dumps(person)
'1215joaquim>'
```

# XML to dictionary

```python
import simplexml
person = simplexml.loads('1215joaquim')
person['person']['name']
u'joaquim'
```

# Installing

```bash
$pip install python-simplexml
```

# Contributing

Fell free to contribute and send me a pull request.