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.

project_data.dill

2. Loaded Python Object

The object is restored perfectly from the file.

Click "Load" to see the result...

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

save()
πŸ“„

.dill File

Serialized data on disk

load()
🐍

Python Object

Restored back in memory