This directory contains an example of a Python HTTP client that receives a multipart/mixed response from the server. The client:
multipart/mixed response.multipart/mixed response using the email module.[^1]To run this example, first start one of the server examples in the parent directory, then:
pip install pyarrow python simple_client.py
[!WARNING] This
simple_client.pyparses the multipart response using the multipart message parser from the PythonThe overhead of
multipart/mixedparsing is 85% on my machine and after the ~1GB Arrow Stream message is fully in memory, it takes only 0.06% of the total execution time to parse it.
[^1]: The multipart/mixed standard, used by HTTP, is derived from the MIME standard used in email.