Parse XML from HTTP responses on the fly, chunk by chunk.
This works with HTTP protocol chunks or partial downloads of large HTTP responses.
I use it to work with the NCBI (PubMed) Entrez API.
See usage examples in these blog articles: * XML streaming chunks load * Entrez gene streaming with http-stream-xml
Install invoke preferably with pipx:
pipx install invoke
To get available scripts:
inv --list