torch-subscriber-simple/torch_sub/torch_sub.py

15 lines
264 B
Python

import json
def attach(host, port, datafile):
response = {
'results': {
'client1': {
'onionAddress': 'crazytime'
}
}
}
with open(datafile, 'w') as outfile:
json.dump(response, outfile)