mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-01-12 07:28:10 -05:00
* autopep8 whitespace only: --select="E101,W1,W2" * revert single file: web2py_online.py Should this be a .py file at all? * revert file Tickets/1443.py because the diff looked strange: maybe there is an encoding problem? * Rename web2py_online.py to web2py_online.rst
15 lines
499 B
Python
15 lines
499 B
Python
from __future__ import print_function
|
|
|
|
import urllib, json
|
|
filehandle = urllib.urlopen('http://www.coolprop.dreamhosters.com:8010/json/builders')
|
|
jj = json.loads(filehandle.read())
|
|
|
|
times = []
|
|
for key in jj.keys():
|
|
filehandle = urllib.urlopen('http://www.coolprop.dreamhosters.com:8010/json/builders/' + key + '/builds/-1')
|
|
builder = json.loads(filehandle.read())
|
|
elapsed_time = builder['times'][1] - builder['times'][0]
|
|
times.append((elapsed_time, key))
|
|
|
|
print(sorted(times)[::-1])
|