Skip to content

Commit

Permalink
Fix syntax for results
Browse files Browse the repository at this point in the history
  • Loading branch information
IronOxidizer committed Oct 29, 2023
1 parent faecced commit 2818860
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions utils/result.json
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
import json
with open("utils/result.json", mode="r", encoding="utf-8") as f:
old_results = json.load(f)

for toolkit in old_results:
with open(f"toolkits/{toolkit['lang']}/{toolkit['name']}/metadata.json", mode="r", encoding="utf-8") as f:
metadata = json.load(f)
toolkit["website"] = metadata["website"]

with open("new_results.json", mode="w", encoding="utf-8") as f:
json.dump(old_results, f)
[{"name": "electron", "lang": "JavaScript", "mode": "retained", "platform_lib": "gtk", "memory": 192814, "startup": 717, "executable_size": 1, "dependencies_size": 1327205, "website": "https://www.electronjs.org/"}, {"name": "tkinter", "lang": "Python", "mode": "retained", "platform_lib": "tk", "memory": 12900, "startup": 118, "executable_size": 0, "dependencies_size": 80352, "website": "https://docs.python.org/3/library/tkinter.html"}, {"name": "gtk-rs", "lang": "Rust", "mode": "retained", "platform_lib": "gtk", "memory": 10742, "startup": 122, "executable_size": 366, "dependencies_size": 147635, "website": "https://gtk-rs.org/"}, {"name": "fltk-rs", "lang": "Rust", "mode": "retained", "platform_lib": "fltk", "memory": 5906, "startup": 64, "executable_size": 1346, "dependencies_size": 36763, "website": "https://github.com/fltk-rs/fltk-rs"}, {"name": "imgui-rs", "lang": "Rust", "mode": "immediate", "platform_lib": "winit", "memory": 52106, "startup": 243, "executable_size": 3957, "dependencies_size": 228725, "website": "https://github.com/imgui-rs/imgui-rs"}, {"name": "tauri", "lang": "Rust", "mode": "retained", "platform_lib": "gtk", "memory": 109117, "startup": 470, "executable_size": 4918, "dependencies_size": 573604, "website": "https://tauri.app/"}, {"name": "iced", "lang": "Rust", "mode": "retained", "platform_lib": "winit", "memory": 47397, "startup": 99, "executable_size": 4496, "dependencies_size": 228186, "website": "https://iced.rs/"}, {"name": "egui", "lang": "Rust", "mode": "immediate", "platform_lib": "winit", "memory": 52100, "startup": 175, "executable_size": 10597, "dependencies_size": 491040, "website": "https://www.egui.rs/"}, {"name": "druid", "lang": "Rust", "mode": "retained", "platform_lib": "gtk", "memory": 6540, "startup": 72, "executable_size": 1646, "dependencies_size": 146355, "website": "https://github.com/linebender/druid"}, {"name": "dioxus", "lang": "Rust", "mode": "retained", "platform_lib": "gtk", "memory": 78409, "startup": 349, "executable_size": 3294, "dependencies_size": 575228, "website": "https://dioxuslabs.com/"}, {"name": "gtk", "lang": "C", "mode": "retained", "platform_lib": "gtk", "memory": 7472, "startup": 81, "executable_size": 14, "dependencies_size": 148029, "website": "https://www.gtk.org/"}, {"name": "fltk", "lang": "C++", "mode": "retained", "platform_lib": "fltk", "memory": 1829, "startup": 40, "executable_size": 14, "dependencies_size": 39417, "website": "https://www.fltk.org/"}, {"name": "qml", "lang": "C++", "mode": "retained", "platform_lib": "qt", "memory": 31040, "startup": 194, "executable_size": 17, "dependencies_size": 308658, "website": "https://doc.qt.io/qt-6/qtqml-index.html"}, {"name": "wxwidgets", "lang": "C++", "mode": "retained", "platform_lib": "gtk", "memory": 8005, "startup": 98, "executable_size": 63, "dependencies_size": 169969, "website": "https://www.wxwidgets.org/"}, {"name": "qt", "lang": "C++", "mode": "retained", "platform_lib": "qt", "memory": 16486, "startup": 106, "executable_size": 17, "dependencies_size": 288456, "website": "https://doc.qt.io/"}, {"name": "swing", "lang": "Java", "mode": "retained", "platform_lib": "swing", "memory": 31465, "startup": 325, "executable_size": 2, "dependencies_size": 524234, "website": "https://docs.oracle.com/javase%2F7%2Fdocs%2Fapi%2F%2F/javax/swing/package-summary.html"}]

0 comments on commit 2818860

Please sign in to comment.