Skip to content

Water-Run/SimpSave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

SimpSave: A Simple Way to Store Your Python Variables

SimpSave is an open-source, ultra lightweight key-value database. It works out of the box, offering a functional-style API that is extremely easy to use, with a "read-and-use" design that makes it perfect for small projects such as student assignments where simple data persistence is needed.

SimpSave 10 introduces multiple storage engines — from the light-weight, python-builtin XML engine, to common formats like YML and TOML, and even the more advanced yet production-grade like SQLITE engine — greatly enhancing overall flexibility and usability.

You can install SimpSave using the following command:

pip install simpsave

Then import SimpSave (commonly aliased as ss) in your project and start using it:

import simpsave as ss

Example of "read-and-use" behavior:

import simpsave as ss

ss.write("key1", ["Hello"])
result = ss.read("key1") + ["World"]  # result = ["Hello", "World"]

Dependencies are optional at installation time. In its simplest form, simpsave is extremely lightweight and requires no third-party libraries:

pip install simpsave[xml]
pip install simpsave[json]
pip install simpsave[sqlite]

For more detailed tutorials, refer to:

About

SimpSave: Easy Python Basic Variable Persistence Library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages