FileCabinetWriter¶
- class wwt_data_formats.filecabinet.FileCabinetWriter[source]¶
Bases:
object
Writer for a simple container format for other files.
One day, we should support the ability to stream data into a cabinet without having to grossly buffer everything in memory. But today is not that day.
Methods Summary
add_file_with_data
(name, data)Add a file whose contents are stored in an in-memory buffer.
emit
(stream)Write out the contents of this cabinet to the target stream.
Return an iterable of the names of the files in this cabinet.
Methods Documentation