Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!


Project Description

Converts XML to Python objects.


pip install unwind


We have following XML file and we desire to parse it:

<?xml version="1.0" encoding="UTF-8"?>
        <name aaa="bbb" ccc="ddd">Привет мир</name>
                <name rel="lala">Пункт 1</name>
                <name>Пункт 2</name>


In Python:

Load XML from file:

>>> import unwind
>>> page = unwind.parse("example.xml")

Load XML from string:

>>> xml = """
        <?xml version="1.0" encoding="UTF-8"?>
        <root />
>>> page = unwind.fromstring(xml)

Get some text:


Get some attrs:


Get list:


Iterate through a list:

>>> for item in
>>>     print

Release History

This version
History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(2.2 kB) Copy SHA256 Hash SHA256
Source None Mar 24, 2013

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting