A simple cli app to convert XML files to CSV, with user-defined columns.
Project description
x2c - XML to CSV
A simple cli app to convert XML files to CSV, with user-defined columns.
Usage
It takes three arguments:
-i --infile input file
-o --outfile output file
-c --column columns
Example:
x2c -i example.xml -o example.csv -c col1,col2,col3
The column names must match the xml tags.
Installation
The script can be installed with pip:
pip install x2c
Or from source (deprecated):
python -m setup.py install
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
x2c-1.0.0.tar.gz
(15.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
x2c-1.0.0-py3-none-any.whl
(15.7 kB
view details)
File details
Details for the file x2c-1.0.0.tar.gz.
File metadata
- Download URL: x2c-1.0.0.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c11d078e0d430baffc16fc2616d04d17e8bdbe38594b1a917d63799f212ad37b
|
|
| MD5 |
1d4c0ee033e4262079b61407e6a865b3
|
|
| BLAKE2b-256 |
0e1e60a25d7d668bec747259fda7f02e4435cc929cddbebbd27592077d901489
|
File details
Details for the file x2c-1.0.0-py3-none-any.whl.
File metadata
- Download URL: x2c-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdbeb945eb4ba7968380c3963523d9c6d49c891f6afb913df44242f9d3751171
|
|
| MD5 |
d411f93bba596fc1ee5df0bf29756802
|
|
| BLAKE2b-256 |
42127f19aef0258cb5ffe5baa08face0fe5932ab9e55465cf0652b4ce1e8b0e7
|