Skip to main content

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:

Open In Colab

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PickleHandler-1.0.11.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

PickleHandler-1.0.11-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page