With #190, an initial Python support is provided.
It is still in its early days, and the API might change a lot.
This issue is used to track the futures improvements and associated limitations.
TODO
It would also be interesting to split and rename (as MLAFile is ambiguous) MLAFile into MLAReader and MLAWriter :
Known caveats
- For now,
MLA structures are not Sync. As a result, a reference on an archive cannot transit between Threads (but they are Send, so the struct itself can)
- A design change is likely required before having a Python object standing for a file in the Archive. Such an object would ease a more Pythonic interface, with a
io.BufferedIO derived class.
With #190, an initial Python support is provided.
It is still in its early days, and the API might change a lot.
This issue is used to track the futures improvements and associated limitations.
TODO
.finalizecan be called onDropto allow for an easier usage..finalizecan't be called twice, otherwise a MLA error will be raised. The Python API can wrap it onDrop, allowing the user to either call it or notstart_file,add_file_contentandend_filelinear_extractwrapping. This could be made using a Python callback, or a given interface (as a Python abstract class) to deriveexamples/directory, and tests themmaturinandpytest)It would also be interesting to split and rename (as MLAFile is ambiguous) MLAFile into MLAReader and MLAWriter :
Known caveats
MLAstructures are notSync. As a result, a reference on an archive cannot transit between Threads (but they areSend, so the struct itself can)io.BufferedIOderived class.