Closed bernardopericacho closed 2 years ago
One more thing. Can you add examples for reading and writing to memory? That's probably useful to demonstrate.
Thanks for the review and the feedback on this. I will apply the suggestions as soon as I can.
I think I addressed all the feedback if you can have another look. Thanks in advance!
Proposed changes:
write
now supports as a parameter either a filename or aio.BytesIO
object._write_default_header_entries
to write the default header entries generated by this package_handle_header_fields
to determine the headers based on the specified headers, data and index order_write_header
that used the logic from_write_default_header_entries
and_handle_header_fields
to write the headerswrite
used the methods above to encapsulate and reuse better the code