% iati2hxl - convert IATI activity lists into to a simple HXL 3W-like representation
## Setup
pip install iati2xml
or (at the root of the source code directory)
python3 setup.py
## Usage
### Command line
$ python -m iati2hxl.generator IATI_URL [IATI_URL ...]
### Python code
import csv, iati2hxl.genhxl, sys
with open('iati-file.xml', 'r') as input:
output = csv.writer(sys.stdout)
for row in iati2hxl.genhxl(input):
output.writerow(row)
## Notes
This is designed to be efficient with large datasets: it streams
through the XML one iati-activity at a time, rather than reading it
all into memory at once.
## License
This code is released into the public domain.
PyPI 官网下载 | iati2hxl-0.2.tar.gz
版权申诉
113 浏览量
2022-02-01
02:45:45
上传
评论
收藏 7KB GZ 举报
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+