Library for saving Python data structures as Python code.
Project description
Persistify
Persistify is a Python library for saving Python data structures and user-defined classes as valid Python code.
It allows you to serialize various data types (lists, dictionaries, sets, custom objects, etc.) into a human‐readable string format that can later be evaluated back into the original Python objects.
Features
- Data Serialization: Converts common Python data structures into executable Python code.
- Custom Object Support: Automatically handles serialization of custom objects with simple constructor signatures.
- Readable Format: The generated code is formatted in a way that makes it easy to understand and modify if necessary.
- Secure Persistence (Optional): With additional secure functions (e.g. using encryption), you have the option to safely store sensitive data.
Installation
Clone the repository and install the package:
Examples
You can find examples of using Persistify in the 'example' folder.
Download
First method is Gihub:
git clone https://github.com/SuperWhiteDev/Persistify.git
cd Persistify
pip install .
From PyPI:
pip install Persistify
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 persistify-1.0.tar.gz.
File metadata
- Download URL: persistify-1.0.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d83b2d1d26a42dc5eea69e38fcc82bb11664adc4fc0eeb0b55257b86cc200f8
|
|
| MD5 |
17c3e5149603a3e43c7cb5e10a4a7fa1
|
|
| BLAKE2b-256 |
952102f7184f3092fe5b17318fd847fb93dd0cbd7be00a8548ef598f29dc9393
|
File details
Details for the file persistify-1.0-py3-none-any.whl.
File metadata
- Download URL: persistify-1.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b296787e87300e6eaf748535ceb593f6fc8a4f74cfd0db81b04df1bc0867a5a5
|
|
| MD5 |
32ce441e84330a9b35bdeb3e46376373
|
|
| BLAKE2b-256 |
704fa23654a93b38d62ebe340d7f056fcda33269c5f0812c1cd7c1609f7cad5a
|