Skip to content

Instantly share code, notes, and snippets.

@Venkatstatistics
Created August 10, 2019 16:38
Show Gist options
  • Save Venkatstatistics/3d7286778facc2860e52831378c98647 to your computer and use it in GitHub Desktop.
Save Venkatstatistics/3d7286778facc2860e52831378c98647 to your computer and use it in GitHub Desktop.
def dump():
with open('results.csv', 'w') as f:
for key in r.lrange('results', 0, -1):
print(key)
f.write(key.decode('utf-8'))
f.write('\n')
if __name__== "__main__":
func_name = sys.argv[1]
functions = {
'read_biglist': read_biglist,
'process': process,
'dump': dump,
}
f = functions.get(func_name)
f()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment