Skip to content

Provides an alternative to using Python's unsafe pickle module

License

Notifications You must be signed in to change notification settings

niolabs/safepickle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

safepickle

A safe alternative to Python's pickle module.

Installation

pip install safepickle

Usage

Safepickle is designed to be used as a drop-in replacement wherever you currently use the pickle module. So in your code you can just import safepickle instead.

import safepickle as pickle

obj = {'loves pickles': True}
obj_str = pickle.dumps(obj)
obj_again = pickle.loads(obj_str)

assert obj_again == obj

About

Provides an alternative to using Python's unsafe pickle module

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages