A small interactive terminal application for inspecting the contents of trusted Python pickle files. It displays the loaded value as an expandable tree alongside a formatted preview of the selected value.
- Python 3.9 or later
- A terminal with
cursessupport
The application uses only Python's standard library; no package installation is required.
From the repository directory, run:
python3 pickle_explorer.py path/to/file.pklFiles with a .pickle extension are also supported. Use ~ or a relative path if convenient.
| Key | Action |
|---|---|
| Up / Down | Move through visible values |
| Right | Expand the selected value |
| Enter / Space | Expand or collapse the selected value |
| Left | Collapse the selected value or move to its parent |
| Page Up / Page Down | Scroll the selected value's preview |
| Home / End | Select the first or last visible value |
| Q | Quit |
Dictionaries, lists, tuples, sets, and objects with attributes can be explored. Container contents are loaded when expanded, and long previews are truncated to keep the display manageable.
Only open pickle files from sources you trust. Loading a pickle can execute arbitrary code. This application uses Python's standard pickle.load and does not make untrusted pickle files safe.