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)

# 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.10.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

PickleHandler-1.0.10-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file PickleHandler-1.0.10.tar.gz.

File metadata

  • Download URL: PickleHandler-1.0.10.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for PickleHandler-1.0.10.tar.gz
Algorithm Hash digest
SHA256 6884c5243a28a0aa0f1b868182eacf1e2e431be55cebc33d01b9b615bc9dddf0
MD5 629696bb4cee6b4ca8010d2debc825bf
BLAKE2b-256 091881882f2349c6ae13da31ac158ac6f97e54cc18f32260423a7757724d82f3

See more details on using hashes here.

File details

Details for the file PickleHandler-1.0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for PickleHandler-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 79e9d2e6b2fac2796d114151313a49b60bd7b1034132c33a2539e92a7e4afd7b
MD5 2d94bfe605ee1e085915db42fd188f21
BLAKE2b-256 b2ecf4419b6f25ea2f3222c317483ca5fc34c46ef0f57beaddb0826f5e2e732c

See more details on using hashes here.

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