PyTables/PyTables — pull request #173 by michalslonina (2012-07-26 13:14:28+00:00)
Title: 165 hdf5 in memory using core driver

This patch adds the ability to use different libhdf5 file drivers (H5FD_SEC2,H5FD_CORE,H5FD_STDIO) and one special fake driver H5FD_CORE_INMEMORY that enables the user to read and write hdf5 documents in memory.

Setting the driver is done by passing the DRIVER **kwarg to openFile function.
To pass an in-memory document to libhdf5, please pass the python string as the H5FD_CORE_INMEMORY_IMAGE argument to openFile function and set the DRIVER to H5FD_CORE_INMEMORY.

To write an in-memory just set the DRIVER to H5FD_CORE_INMEMORY and use pytables as usual.
After closing the file object, your data will be made available thru the file.getInMemoryFileContents().