Iati to JSON converter
Project description
Convert IATI XML to JSON
Install
pip install iati2json
Usage
Save to file (fastest option)
import iati2json
iati2json.convert("my_iati_file.xml", file="converted.json")
Convert to String
import iati2json
import json
iati_json_string = iati2json.convert("my_iati_file.xml")
iati_dict = json.loads(iati_json_string)
Pretty (indented output)
import iati2json
iati2json.convert("my_iati_file.xml", file="converted.json", pretty=True)
Custom Iati Schemas
By default will work with 2.03 version of standard. You can provide your own versions of schemas:
import iati2json
schemas = [
"https://raw.githubusercontent.com/IATI/IATI-Schemas/version-2.04-beta/iati-activities-schema.xsd",
"https://raw.githubusercontent.com/IATI/IATI-Schemas/version-2.04-beta/iati-organisations-schema.xsd",
]
iati2json.convert("my_iati_file.xml", schemas=schemas)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
iati2json-0.1.2.tar.gz
(15.6 kB
view hashes)
Built Distributions
iati2json-0.1.2-cp39-none-win32.whl
(618.3 kB
view hashes)
Close
Hashes for iati2json-0.1.2-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d45263dc589a177e3bab005b24fbe1f885058eb1fd6b4d590ab941c45b28f801 |
|
MD5 | cce702ede81fbe82d4a242037dd4b77c |
|
BLAKE2b-256 | 16a43f71916e1c1733ea3b06d9e9eb7856e15cc73145a97c5a43c58975786b9d |
Close
Hashes for iati2json-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc20840ecbc607f1ac193e478802314cc1422cee7820e8de64cf751b89f94ce6 |
|
MD5 | 9e44b536363b2d3c1210f763c31a258f |
|
BLAKE2b-256 | 725bec84cb2a598ba68467c5537111f249075f830cb22e365f847cc54d979d1d |
Close
Hashes for iati2json-0.1.2-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4783ca7b5e4b45016733dff93a39237912827aa00cb2c9f15f087f4ed1d3da89 |
|
MD5 | 4b045337336225851788e19bdd9aea37 |
|
BLAKE2b-256 | 2c9844681b88a309febc3e0fd362c1e661a5122d96a3b197e56a79d5314aa84d |
Close
Hashes for iati2json-0.1.2-cp311-cp311-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 526324d08266314c91df43157da4ab3f3d8e0b6099b2b236814f9d4088708e10 |
|
MD5 | d56aa9b9fce36d46c8c670dc9855493a |
|
BLAKE2b-256 | 661228ce18593ec2dadf0e8c5d062ab7376f06e1132cf0f5192a372984ee9cbe |
Close
Hashes for iati2json-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04019781c71908f871f6f9ac2912f288ad7a1d9e5434bae3a20eb453f480eff2 |
|
MD5 | 9c3280d08ab40ccf9870f5bbbe224a34 |
|
BLAKE2b-256 | 1fee846c767cf5620b693f25d907c86b455df83603d3f3985f2bc84edd803bfd |
Close
Hashes for iati2json-0.1.2-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | deefe7909a6ed11bf47d313c098519750a958dd432e8820a7f53497807f09b4b |
|
MD5 | 6724c9a77472c4e5d8180cedeb3c7492 |
|
BLAKE2b-256 | 4459c4d29a8f0c58611d562d53081fe22b613c69d7e65ce505f7c17a7466a991 |
Close
Hashes for iati2json-0.1.2-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2eea925aa604957abc5714a7f18597adf143d1436479f05280ad0319263038e7 |
|
MD5 | bc9f21f99c212ad8c6762dc6646ae286 |
|
BLAKE2b-256 | 83c8fb755ba448d945d290d3a1f11fd1fd651f85c7bd52a036be88f2dca95004 |
Close
Hashes for iati2json-0.1.2-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2c35b604454a93f9599b937cde244d0b5025fb86b2a77b3f8ff11e9fe23a246 |
|
MD5 | ce7ac9512439d07c47639be06feb5cf5 |
|
BLAKE2b-256 | 44bc255973d93ef16567a8a3d2528d615bfe3b6b39d461f06f3ed95f20fbbcaf |
Close
Hashes for iati2json-0.1.2-cp39-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b62e7977a38516275ca32efd6167a3ee5cce8acae3cb5c1ee12fa295a310e7f |
|
MD5 | 919dcac7d0fb622b56344d1fd4f539db |
|
BLAKE2b-256 | ddeb75702c9ac738bfacf372ea1b6d4a47f1f9bb688a0e5fb9bf5da35deced91 |
Close
Hashes for iati2json-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c49b4613c951e07a5e2a548b6dc9e495ba2522630e9aaf0a2f5904bfd16814d9 |
|
MD5 | d78f47b2ac7717c6c572c7f4e870cdd4 |
|
BLAKE2b-256 | 0789f57a3d9730663e0bce996aec5f5076c15b67c81eef3f041271391e178817 |
Close
Hashes for iati2json-0.1.2-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b48dd46d0385452f91938aa84a13fa5f07257cc98e3bfa700e50c76275de1e9 |
|
MD5 | 37cc8e21f2770ceb369ea67458ce586d |
|
BLAKE2b-256 | 4cba55a6d3e1c9e107b798ba6cb8e8620f5f1f013775fac89c0802d9a2512af1 |
Close
Hashes for iati2json-0.1.2-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f27791775c9fa43e46cc5dc4937b07674c10513a250b3f551b4fa584035c6b6c |
|
MD5 | 7c5a2bd1d924bae500aa2d93d0264e6a |
|
BLAKE2b-256 | 3dbac8280bc2b6ab0e2300d673e1802c6b9311e81b12456d6b90e720deee55f6 |
Close
Hashes for iati2json-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f2905202383a351997a0c7235aca2f42167d4bf0f018532e253c7c61345e8b0 |
|
MD5 | 6f78065f2d0d71bc4e3cd9bd6bae5adb |
|
BLAKE2b-256 | 1afc218312951a0b9ea743573dec3d862272b53e0c74e11675d5564ad9ebd629 |
Close
Hashes for iati2json-0.1.2-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e600bfb0c3e6199f213ee4fd6b2593be67813cbffb683a810911fbed6c95836d |
|
MD5 | 481a8a5b558cb15e9acb0df452366bbe |
|
BLAKE2b-256 | 77eb749486114465655ac28d4cbff34bf7baaf7b4f7783232e61f05a1c4e256f |
Close
Hashes for iati2json-0.1.2-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a27e6816417316e8ad0fd3b0b6d4fc221dd2cdf6d451a219cf26809356d1e49b |
|
MD5 | c2b4e74e13f6945a2da62ced332978f5 |
|
BLAKE2b-256 | 3108691cee5106a222260357d58fcc37f44c074b9e715fe50d483b2594408587 |
Close
Hashes for iati2json-0.1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0af8f7df3e722ecb35b1debf71c40dce910032d3329a2033cddcc6430837a9d6 |
|
MD5 | dc0f37cefd36ceb4194bf8ce912678bd |
|
BLAKE2b-256 | 5983ad1f68e4316e0c53b668c7ccab54c9d38dc358d768340c215b3d96480994 |
Close
Hashes for iati2json-0.1.2-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e456a74df237c5f156fbe978a97887c2567bec849ddcac2647c0cb8302f6278 |
|
MD5 | 191f7c82acc3878686e5f8c3218b9911 |
|
BLAKE2b-256 | 4f355ab28bb52f18b0b6232015943224cb68f633a86201f0a6decfc4248a1e60 |
Close
Hashes for iati2json-0.1.2-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c1129a230e84e9bbd94655b201bb93585f94a07f432447b0e94dc53ba4d951a |
|
MD5 | b804939db6386b56ba60a1d8679d8b50 |
|
BLAKE2b-256 | bbce132d9404721e219debcc7ef1db483e58efddf790b83ef208300e9ab98d7e |