Skip to main content

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.3.tar.gz (16.4 kB view details)

Uploaded Source

Built Distributions

iati2json-0.1.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (709.6 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

iati2json-0.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (707.7 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

iati2json-0.1.3-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (1.3 MB view details)

Uploaded CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

iati2json-0.1.3-cp311-cp311-macosx_10_7_x86_64.whl (673.6 kB view details)

Uploaded CPython 3.11 macOS 10.7+ x86-64

iati2json-0.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (707.7 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

iati2json-0.1.3-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (1.3 MB view details)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

iati2json-0.1.3-cp310-cp310-macosx_10_7_x86_64.whl (673.6 kB view details)

Uploaded CPython 3.10 macOS 10.7+ x86-64

iati2json-0.1.3-cp39-none-win_amd64.whl (628.0 kB view details)

Uploaded CPython 3.9 Windows x86-64

iati2json-0.1.3-cp39-none-win32.whl (617.7 kB view details)

Uploaded CPython 3.9 Windows x86

iati2json-0.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (707.7 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

iati2json-0.1.3-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (1.3 MB view details)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

iati2json-0.1.3-cp39-cp39-macosx_10_7_x86_64.whl (673.6 kB view details)

Uploaded CPython 3.9 macOS 10.7+ x86-64

iati2json-0.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (707.3 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

iati2json-0.1.3-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (1.3 MB view details)

Uploaded CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

iati2json-0.1.3-cp38-cp38-macosx_10_7_x86_64.whl (673.3 kB view details)

Uploaded CPython 3.8 macOS 10.7+ x86-64

iati2json-0.1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (707.3 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

iati2json-0.1.3-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (1.3 MB view details)

Uploaded CPython 3.7m macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

iati2json-0.1.3-cp37-cp37m-macosx_10_7_x86_64.whl (673.3 kB view details)

Uploaded CPython 3.7m macOS 10.7+ x86-64

File details

Details for the file iati2json-0.1.3.tar.gz.

File metadata

  • Download URL: iati2json-0.1.3.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for iati2json-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a85b9ae6caf00ce4b2700349d8fc75eaaa6fe8c16e0b6c157cacba90994c5ce8
MD5 8949d406c4b377c00f879e7ae073d954
BLAKE2b-256 eac27332ac6647c0c089a857a82e5423afb0f70c4c426cc6bb8510b2198a013f

See more details on using hashes here.

File details

Details for the file iati2json-0.1.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for iati2json-0.1.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e0f1531cac5fd8c662625498e08c09093a562f521592b59dc8d211f3471813c6
MD5 a042a74b862ae8f5588c9390448a68de
BLAKE2b-256 971d49457a5b66d654dd8f66d2ca40405c7d7e2cd3818760fa81ee94647d15a7

See more details on using hashes here.

File details

Details for the file iati2json-0.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for iati2json-0.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5c4502a576ca072757badead7cc5d61b190488eacdd38c8512eb0a23ea6e0920
MD5 3b0024e780356518a5f11d6b3a467347
BLAKE2b-256 680b6db1c0be549c28cfb868ea9f52c08a8907e6fa77f93de57d5e5334f0afbb

See more details on using hashes here.

File details

Details for the file iati2json-0.1.3-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for iati2json-0.1.3-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 22e4c9847a4ff697db23a611d05773e497533e17b041c54f0325d29e83c8598d
MD5 0ff645ae4fc81571a8e771332179600e
BLAKE2b-256 2ed0eaaceff6354779c9c6656ca246382cac0668d45adde7a0f3afb053e21054

See more details on using hashes here.

File details

Details for the file iati2json-0.1.3-cp311-cp311-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for iati2json-0.1.3-cp311-cp311-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 17f4ebf1dcd267ea2ae595f958799fa7895f982361ed5a3948ba75e30fe3651e
MD5 a97ce5d30209955d156379675979480b
BLAKE2b-256 ee0cb516a322adbbba26f02bf97b22be2323efa7b1a368e25e390faa41d195ce

See more details on using hashes here.

File details

Details for the file iati2json-0.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for iati2json-0.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b855b3ac07ca5ed3279d782e7590872b9db9a1bf1a4063091ada27488b5516f9
MD5 e4de996e29f887446156dd2779495d92
BLAKE2b-256 5483c53e2597cc5b177c9fcea1dc6ab785858aaea90712b3b007d6738f039d5c

See more details on using hashes here.

File details

Details for the file iati2json-0.1.3-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for iati2json-0.1.3-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 c37886b125a0be9c5f5d88628d2fda1e75ab21c4c776bae8da9bb156e4b03dce
MD5 2b03b86cfc1f123263788812612ac81d
BLAKE2b-256 787c07611e8f9dd8e89c50185144a9f460bd6b714a4f46426ad4a845882141e8

See more details on using hashes here.

File details

Details for the file iati2json-0.1.3-cp310-cp310-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for iati2json-0.1.3-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 c3d47d57f8f3a1344a3ae74acb33e06733b9dfa07e55f4a60799bbae57ccdb24
MD5 078294ad709cb069881c062b4546bd1f
BLAKE2b-256 99d11e5726ba60881f027686465af81d4f10d785f770bd77a8682501a823430d

See more details on using hashes here.

File details

Details for the file iati2json-0.1.3-cp39-none-win_amd64.whl.

File metadata

  • Download URL: iati2json-0.1.3-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 628.0 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for iati2json-0.1.3-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 8e6fc58a48fc034ab75b4a350ce26c1b92c2464a6c6550d95983d8edf65eaefa
MD5 b880670cc14b797867416e0e0cb2e23f
BLAKE2b-256 88ced76c4e231c004ac95b2a81de10789fd2341a0f5b6b5e478ef469f24ce830

See more details on using hashes here.

File details

Details for the file iati2json-0.1.3-cp39-none-win32.whl.

File metadata

  • Download URL: iati2json-0.1.3-cp39-none-win32.whl
  • Upload date:
  • Size: 617.7 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for iati2json-0.1.3-cp39-none-win32.whl
Algorithm Hash digest
SHA256 e9db21b9a85dbcaedd214f21c5d33c74b4b06fba76f8d96040a099657c0203a2
MD5 b9f8c63fe67d0e3e91176e5b63134bca
BLAKE2b-256 39ba377f6930e58849a3ff7191074ccceb33be9aeb54fbef1b8cd72add17475d

See more details on using hashes here.

File details

Details for the file iati2json-0.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for iati2json-0.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 782ed4e1e3d917d472b4a1bfd916dbc0809b3da5fbcc4c6fc00ad9891732e451
MD5 7800967206f07e912b392aadee093812
BLAKE2b-256 9cffcedd075181656e9d0c378efa095e8d72739bb43d119cfe2710828a211b2a

See more details on using hashes here.

File details

Details for the file iati2json-0.1.3-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for iati2json-0.1.3-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 8b882517528eb6b1f6780d3a45572e651eb9c66d459d96f3058f2a6fb9ab03c4
MD5 ee5174fd2b75ad548f0177119c3222fd
BLAKE2b-256 d96b76aaf2d7e00ea01edaa37b228744dd3701cd511f56945825cb606336d926

See more details on using hashes here.

File details

Details for the file iati2json-0.1.3-cp39-cp39-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for iati2json-0.1.3-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 4e5cbdbf005482f53a73fbd8817c0b59449baaa6e2fc2abdc812712d58df841a
MD5 0c3e31ee524119be217b4a570872c4d9
BLAKE2b-256 68e2e08fded831ab0d787958222e268b4aa6a06621cc3f40fc9112dd523dffc6

See more details on using hashes here.

File details

Details for the file iati2json-0.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for iati2json-0.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9aee731a18816e7000c913725ab9c6ee4ebdf8810fa7feaa91e7c91278281b99
MD5 39391f9933e3077dca00b4911e3ece94
BLAKE2b-256 a3b60f9ed7cab0d362d9e9193e62b999711e436101c0d927d65e6ee19879369e

See more details on using hashes here.

File details

Details for the file iati2json-0.1.3-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for iati2json-0.1.3-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 895d7f4628f283d4f795dda786ea0daec066fbf8b1ad3bf5e3777eae38f66cda
MD5 9e2ab1b8ff0718c0d15d18581cba3994
BLAKE2b-256 19e45aee4de953d5e0aabfb589be48053b710d5b2d9be3258ab565b29a45675a

See more details on using hashes here.

File details

Details for the file iati2json-0.1.3-cp38-cp38-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for iati2json-0.1.3-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 1846e709eece28b5abc4ef25c1fd509398e5b300726af11197160117e14cd2f7
MD5 5a10da19f42d904cb64071c42e85d2f4
BLAKE2b-256 98f7a6bb485c5e229a1b946375714cccaf2a75e054aa1bbc2ac3b3160fd7dc5c

See more details on using hashes here.

File details

Details for the file iati2json-0.1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for iati2json-0.1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a2ff11e028d678464bdfc730d0810cf4f9daf6161af2650e5f6fe528c532d6c4
MD5 7c1844a5cc6f0c6328e80339a452334a
BLAKE2b-256 c2efb91ecab8d214fef7ffa4973ddbd4ff6214cc53cae716833c474b4096158a

See more details on using hashes here.

File details

Details for the file iati2json-0.1.3-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for iati2json-0.1.3-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ac2c87f7814f645ed0bcadeaaf1e381c3ccbc0393701e05059959665eb64fbfc
MD5 d8564e2fd2773ab7e0ce90fa949e90b5
BLAKE2b-256 a48030368118d63f7ce261046803ab341de58049afc2c0b62c6b67c32e4d6807

See more details on using hashes here.

File details

Details for the file iati2json-0.1.3-cp37-cp37m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for iati2json-0.1.3-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 4b8f9fef89c83ab2a4a6ee9ae8f7f24c429b5577b58ff909f2cf117f3361f78c
MD5 ff94e71afd051adc23603736e2dfd99e
BLAKE2b-256 471b88564240e53c8c2b206c33791be8eedd920b68fd8beb1b756cedb3c9ceda

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page