I hate with open(file_path) as file...
and I don't want to google how to save pickle in python
anymore.
then, i made it.
Use the package manager pip to install ezpkl.
pip install ezpkl
from ezpkl import save_pkl
a = [1, 2, 3, 4, 5]
# 'a.pkl' will be saved in the current directory.
save_pkl(var=a)
# 'a_list_temp.pkl' will be saved in the current directory.
save_pkl(var=a, file_name='a_list_temp')
from ezpkl import load_pkl
a = load_pkl('a.pkl')