Skip to content
/ pkls Public

Simple python module for listing contents of a pickle file on the command line

License

Notifications You must be signed in to change notification settings

arel/pkls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pkls

"ls" for pickle files.

A super simple python module for listing contents of a pickle file from the command line. Unlike your normal pickle.load() function, pkls gracefully displays classes even if they are not in your current environment.

Example

Assuming you have a file named example.pickle, you can list its contents like this:

$ pkls example.pickle

which pretty-prints the contents of example.pickle. For example,

$ pkls example.pickle
example.pickle
[   1,
    2,
    'Salem',
    {   3: 'Sprague'},
    OrderedDict([(541, 'Oregon')]),
    missing_module.ArelClass : {   'a': 'Camerata', 'b': 123}]

Usage

usage: pkls [-h] FILE [FILE ...]

List contents of a pickle file

positional arguments:
  FILE        Pickle files to list.

optional arguments:
  -h, --help  show this help message and exit

Installation

$ pip install git+https://github.com/arel/pkls.git

About

Simple python module for listing contents of a pickle file on the command line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages