saved-instance is a persistent Python dictionary
Project description
saved_instance
About
SavedInstance is a persistent Python dictionary. It allows you to store and retrieve data based on key and value in a dictionary format.
Introduction
SavedInstance is:
- Just dict: For accessing or modifying data, there are no separate methods, you can work with the same way as a dictionary.
- Flexi type: SavedInstance can store all python types and custom user defined class
- Inbuilt secure: Provides a functionality to store the data in encrypted format, it automatically encrypts the data and decrypts it on demand.
- Thread safe: Designed to work reliably in multi-threaded and multi-processing environments.
Example
Alice.py
Alice.py
from saved_instace import simple_storage
simple_storage = simple_storage()
# writing
simple_storage["message"] = "Hello World"
Bob.py
Bob.py
from saved_instance import simple_storage
simple_storage = simple_storage()
# Reading
print(simple_storage["message"])
Getting Started
Install
pip install saved_instance
Config
svd config init --project-name your-project-name
Run above the command in root of your project
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
saved_instance-0.1.2.tar.gz
(47.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file saved_instance-0.1.2.tar.gz.
File metadata
- Download URL: saved_instance-0.1.2.tar.gz
- Upload date:
- Size: 47.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26d2a015c78a4344a1b4e06a7fac2df34fbcae37d4faeaaabf837cf24f67c2eb
|
|
| MD5 |
e6989776e377bca865cd18dab0c012f5
|
|
| BLAKE2b-256 |
5b49a462b9bfe506081cff421fbbb405ee6478752aa0fadfaf39bc605150f456
|
File details
Details for the file saved_instance-0.1.2-py3-none-any.whl.
File metadata
- Download URL: saved_instance-0.1.2-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64f2bb14be789880e564ae95b2367781436310f495515253d25ddc8045684113
|
|
| MD5 |
2d442d9b6d488bbb5bce15279dce87aa
|
|
| BLAKE2b-256 |
ff5a8432ffda97539d71520d17c1e7f61339397397ba0fccbbd0f012c2535c9f
|