import requests, json, abp # Make a new graph and position the nodes g = abp.NXGraphState(range(N)) g.layout() # Serialize data = json.dumps(test_graph().to_json()) # Post to the server URL = "https://abv.peteshadbolt.co.uk/grey-johnny-lima-saturn" requests.post("{}/graph".format(URL), data=data)