justsave: Preserve Python Objects in One Line
A featherlight Python library to make saving and loading complex objects incredibly simple. Stop worrying about serialization and focus on your code.
pip install justsave
Effortless Use
One line of code to save, one line to load. The library is designed to be as intuitive as possible.
Comprehensive
Saves almost any Python object, including functions, classes, and complex data structures, thanks to `dill`.
Reliable & Robust
Handles caching for you and ensures that your objects are serialized correctly.
See It in Action
This is an interactive demo that simulates how `justsave` works. Click the buttons to see the object being saved to a file and then loaded back into memory.
1. Your Python Object
This is the complex dictionary we want to preserve.
2. Loaded Python Object
The object is restored perfectly from the file.
How It Works
`justsave` provides a clean interface over the powerful `dill` library. Hereβs a simplified view of the process.
Python Object
Your data in memory
.dill File
Serialized data on disk
Python Object
Restored back in memory