martinblech / xmltodict

Python module that makes working with XML feel like you are working with JSON
MIT License
5.52k stars 462 forks source link

Add async support #337

Open Zaczero opened 1 year ago

Zaczero commented 1 year ago

Use case I use streaming parsing (xmltodict.parse) since the files I handle are quite large. Inside the item_callback method, I want to execute some asynchronous code, such as uploading the processed batch to a database.

I would greatly appreciate seeing an implementation based on AnyIO, which would make the library compatible with the most widely used async backends, including asyncio and trio.