< Home - < Back

python-xmltodict


Information about the package, python-xmltodict, which is shipped with common Linux distributions. The python-xmltodict package is designed for, Makes working with XML feel like you are working with JSON.


Package Name:

python-xmltodict

Summary:

Makes working with XML feel like you are working with JSON

Description:

xmltodict is a Python module that makes working with XML feel like you are working with JSON. It's very fast (Expat-based) and has a streaming mode with a small memory footprint, suitable for big XML dumps like Discogs or Wikipedia. >>> doc = xmltodict.parse(""" ... <mydocument has="an attribute"> ... <and> ... <many>elements</many> ... <many>more elements</many> ... </and> ... <plus a="complex"> ... element as well ... </plus> ... </mydocument> ... """) >>> >>> doc['mydocument']['@has'] u'an attribute' >>> doc['mydocument']['and']['many'] [u'elements', u'more elements'] >>> doc['mydocument']['plus']['@a'] u'complex' >>> doc['mydocument']['plus']['#text'] u'element as well'

Architecture:

noarch

Version:

0.4.2

Release:

2.el6

Size:

12 k

Repository:

epel

From Repository:

Licence:

MIT



Handy Yum Commands for python-xmltodict


Control the python-xmltodict package with the following handy commands outlined below.


Command

Description of Command

yum install python-xmltodict

This command will install python-xmltodict on the server.

yum remove python-xmltodict

This command will un-install python-xmltodict on the server. When you run this command, you will be asked if you are sure that you want to remove python-xmltodict, so you have to manually confirm that you want to do this.

yum -y remove python-xmltodict

This command will un-install python-xmltodict on the server. When you run this command with th e -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove python-xmltodict when using the -y flag.

yum update python-xmltodict

This command will update python-xmltodict to the latest version. When you run this command, you will be asked if you are sure that you want to remove python-xmltodict, so you have to manually confirm that you want to do this.

yum -y update python-xmltodict

This command will update python-xmltodict to the latest version. When you run this command with the -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove python-xmltodict when using the -y flag.

yum info python-xmltodict

This command will show you core information about the python-xmltodict package.

yum deplist python-xmltodict

This command will show you the dependencies for python-xmltodict. Thankfully, when using Yum, if dependencies are required, these are also installed at the same time so you don't have to worry too much about that.

yum check-update python-xmltodict

This command will check if there is an update waiting on python-xmltodict. When you run this command this will return nothing if there is nothing to update, or, will return the package name if the package is due to be updated.