-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
28 lines (22 loc) · 944 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<html><head><meta charset=utf-8></head><script src=/pygbag/0.0/pythons.js data-os=vtx,fs,gui,smb data-LINES=25 data-CONSOLE=7 data-python=cpython3.13 type=module id=__main__ async defer>#<!--
import sys, asyncio, platform, embed
if len(sys.argv) and not sys.argv[0]:
import pygbag_ui as ui
import rich
async def main():
ui.clear()
ui.goto_xy(1,1)
platform.window.debug()
shell.interactive(prompt=True)
# CSI("?1002h","?1006h")
for subdir in ["tests","users","org"]:
async with platform.fopen('https://api.github.com/repos/pygame-web/showcases/contents/tests','r') as api_result:
git = json.load(api_result)
for elem in git:
print("_"*40)
print(elem["path"], elem["git_url"])
asyncio.run(main())
else:
print(f"{sys.argv=}")
# you can write python code here for a custom loader
# --></script></html>