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

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

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

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -