I have a HDF5 file and a list of objects that I need to store for saving functionality. For simplicity I want to create only one save file. Can I store H5 file, in my save file that I create with serialization (pickle) without opening H5 file.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
You can put several files in one by using zipfile or tarfile
write
the database files andwritestr
yourpickle.dumps
ed data.add
the database file andgettarinfo
,addfile
yourpickle.dump
ed data from a file.I would suggest creating a zip if you do not need extended filesystem-attributes because it is a bit easier to use.