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
- Host: GitHub
- URL: https://github.com/marcelnicolay/simplexml
- Owner: marcelnicolay
- License: gpl-3.0
- Created: 2010-07-22T17:53:31.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2021-12-05T20:09:02.000Z (over 4 years ago)
- Last Synced: 2025-03-10T10:18:54.056Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 53.7 KB
- Stars: 24
- Watchers: 4
- Forks: 12
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - marcelnicolay/simplexml - Simple and fast XML encoder/decoder for Python (<a name="Python"></a>Python)
README
SimpleXML - encoder/decoder
======================

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.