Command-line tool pretty-print XML with xpath
Project description
Command-line tool to validate and pretty-print XML.
Setup
# Install through pip
pip install ppxml
# Install through git
pip install git+https://github.com/h2rd/ppxml
# or without cache
cd /tmp
git clone https://github.com/h2rd/ppxml
cd ppxml
python setup.py install
Examples
Just prettify and colorize xml code:
curl http://feeds.bbci.co.uk/news/rss.xml | ppxml
Use xpath for get some elements:
curl http://feeds.bbci.co.uk/news/rss.xml | ppxml -x "//item"
Use xpath for get deeper elements:
curl http://feeds.bbci.co.uk/news/rss.xml | ppxml -x "//item/title"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ppxml-0.1.0.tar.gz
(1.9 kB
view details)
File details
Details for the file ppxml-0.1.0.tar.gz
.
File metadata
- Download URL: ppxml-0.1.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e13f8eed233f74266485fbdb0ce2ee5c9287bbdf5a7fe786e0c166bce1418f6 |
|
MD5 | d8ef0fc5e11b353326554caf3a7a51dd |
|
BLAKE2b-256 | ba206757d43aa5dd32a08f17812e2e26c0ac39c56b650455b7f5e68d345d4abe |