python - Can I store a file (HDF5 file) in another file with serialization? -


i have hdf5 file , list of objects need store saving functionality. simplicity want create 1 save file. can store h5 file, in save file create serialization (pickle) without opening h5 file.

you can put several files in 1 using zipfile or tarfile

  • for zipfile write database files , writestr pickle.dumpsed data.
  • for tarfile add database file , gettarinfo, addfile pickle.dumped data file.

i suggest creating zip if not need extended filesystem-attributes because bit easier use.


Comments

Popular posts from this blog

serialization - Convert Any type in scala to Array[Byte] and back -

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -