What you are looking for is binary serialization. The most notable functionality for this in Python is pickle . If you have some standard scientific data structures, you can look at HDF5. JSON also works with many objects, but this is not binary serialization - it is a text version.
If you expand your options, there are many other serialization options. Such as Google Protocol Buffers (developer of Rprotobuf - this is responsible for the top rating for r tag on SO), Avro, Thrift, etc.
Although there are common serialization options such as pickle and .Rdat , a thorough review of your use will be useful for quick I / O commissioning, especially if you need random access, portability, concurrency access, tool reuse, etc. d. For example, now I try to avoid .Rdat for large objects.
Iterator
source share