comparison data_manager/bigg_model_sbml_fetcher.py @ 7:20146da1a7a6 draft

"planemo upload for repository https://github.com/brsynth/synbiocad-galaxy-wrappers commit 47caed1dd87e80ae226fabb584e9d63d7c86a436-dirty"
author ggricourt
date Thu, 24 Feb 2022 11:10:43 +0000
parents 65589e7476b6
children 6465fbc82292
comparison
equal deleted inserted replaced
6:65589e7476b6 7:20146da1a7a6
33 def url_json(url): 33 def url_json(url):
34 data = {} 34 data = {}
35 try: 35 try:
36 with urlopen(Request(url)) as fod: 36 with urlopen(Request(url)) as fod:
37 data = fod.read().decode('utf-8') 37 data = fod.read().decode('utf-8')
38 data = ast.literal_evals(data) 38 data = ast.literal_eval(data)
39 except Exception as e: 39 except Exception as e:
40 sys.exit(str(e)) 40 sys.exit(str(e))
41 return data 41 return data
42 42
43 43