DePickle / README.md
OldKingMeister's picture
update color
64320c5 verified

A newer version of the Gradio SDK is available: 6.14.0

Upgrade
metadata
title: DePickle
emoji: πŸ”
colorFrom: indigo
colorTo: green
sdk: gradio
sdk_version: 5.46.0
app_file: app.py
pinned: false
license: mit
short_description: safely deserialize Python pickle files and display

πŸ₯’ DePickle

DePickle is a lightweight tool to safely deserialize Python pickle files and display their contents in JSON format.
It’s designed for inspection and debugging β€” no arbitrary code execution, no surprises.


✨ Features

  • πŸ”’ Safe: Unknown classes are mapped to harmless placeholders, instead of being executed.
  • πŸ“‚ Simple: Upload a .pkl file and instantly explore its structure.
  • πŸ”Ž Transparent: Converts complex object trees into pure Python built-ins (dict, list, str), making them easy to read.
  • πŸ“₯ Exportable: Download the parsed content as a JSON file for further processing.
  • 🧩 Multi-pickle support: Handles files containing multiple concatenated pickle objects.

πŸ’‘ Use Cases

  • Inspect cached configs, model metadata, or experiment checkpoints.
  • Debug pickle contents without risking arbitrary code execution.
  • Convert pickle files into JSON for easier downstream analysis.

πŸš€ How to Use

  1. Upload a .pkl file.
  2. Click Deserialize Safely.
  3. View the parsed JSON in the preview panel.
  4. (Optional) Download the JSON file for further inspection.

⚠️ Note: DePickle is intended for safe inspection only.
If you need to actually execute pickled objects (e.g., with their original classes), always do so locally and only with files you fully trust.

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference