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.dumps
ed data. - for tarfile
add
database file ,gettarinfo
,addfile
pickle.dump
ed data file.
i suggest creating zip if not need extended filesystem-attributes because bit easier use.
Comments
Post a Comment