A utility for saving and loading data using pickle with logging functionality.
Project description
PickleHandler
PickleHandler is a Python package that provides a convenient way to save and load data using the pickle module. It also includes logging functionality to track data loading and saving operations.
Installation
To install PickleHandler, you can use pip:
pip install PickleHandler
Usage
Here's a simple example demonstrating how to use PickleHandler:
from PickleHandler import PickleHandler
# Initialize PickleHandler
handler = PickleHandler(folder_path="data", file_name="example.pkl")
# Save data
data = {"key": "value"}
handler.save(data, comment="Data saved 1")
# Load data
loaded_data = handler.load()
print(loaded_data)
Contributing
Contributions are welcome! If you find a bug or have an idea for an improvement, please open an issue or submit a pull request on GitHub.
Github: https://github.com/Prbn/PickleHandler
License
This project is licensed under Creative Commons Attribution-ShareAlike 4.0 International License - see the LICENSE file for details.
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
File details
Details for the file PickleHandler-1.0.11.tar.gz
.
File metadata
- Download URL: PickleHandler-1.0.11.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2afafb8d37fdb091ae7078baa2caf5877c5ac44e1b02c689de73fae6340b56d8 |
|
MD5 | 2f066810bc81ff5af2f61d3f032b4111 |
|
BLAKE2b-256 | 8e65d24177968ddf4468aee42f805970b9726cc7638e46d8027bcd592db237c5 |
File details
Details for the file PickleHandler-1.0.11-py3-none-any.whl
.
File metadata
- Download URL: PickleHandler-1.0.11-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c4d3bdafeafdde98933a0a435a991ef29ae63d2ee41d8acb4ff51bd190673ce |
|
MD5 | f02309c2765bff7d92174539e98e5140 |
|
BLAKE2b-256 | 62cbfd99b30a24bc012a9e167ef2f7e2f054539c3906d2a9730956dbbdfc42d2 |