add pickle outputter
This commit is contained in:
parent
ac76474030
commit
43f1f6a680
@ -1,6 +1,6 @@
|
||||
from . import json
|
||||
|
||||
outputters = [json]
|
||||
outputters = [json, pickle]
|
||||
|
||||
def get_outputter (name):
|
||||
for outputter in outputters:
|
||||
|
5
tge/outputters/pickle.py
Normal file
5
tge/outputters/pickle.py
Normal file
@ -0,0 +1,5 @@
|
||||
import pickle
|
||||
|
||||
def output (data, destination):
|
||||
with open(destination, "w") as out_file:
|
||||
pickle.dump(data, out_file)
|
Loading…
x
Reference in New Issue
Block a user