mcstatus
mcstatus copied to clipboard
website alternative?
Authored by Aaronstar-McClure
so i see that dinnerbone's page is down because of a recapatcha issue. is anyone hosting a mirror or alternative web page?
Authored by kevinkjt2000
I'm looking at possibly using Brython to deploy a GitHub pages (or some other static site host) version of mcstatus. This would alleviate the need for running a server as a backend by running Python code directly in the web browser of the visitor. The issue is that not all Python code is supported, such as asyncio. Instead, there are other built-in async functions that are mostly identical, so this may be tricky to do. The cost of running a backend server and the time involved to set one up in a serverless environment has deterred me thus far, so Brython seems promising and therefore possibly worth the effort. No ETA on when I'll have something working, but I am tinkering with this.
Maybe close this? There are CLI part and interpreter interactive session for investigating API.
A handful of people believe Dinnerbone used this repo to deploy his website. While this confusion might be less likely to happen now that mcstatus is in an organization, I would still like to leave it open for this reason and ...
I still see deploying to a web browser as convenient for some users. Imagine installing Python is a barrier for some and being on mobile would make using mcstatus tricky too. It is low-priority work, because I am waiting for something that supports async Python (or an expert on porting Python to web to swoop in and do it). Web assembly keeps gaining traction, and someone could make a Python interpreter or compiler that supports mcstatus someday.
Web assembly keeps gaining traction, and someone could make a Python interpreter or compiler that supports mcstatus someday.
Actually, WA interpreter for python is already a thing, because of RustPyhon. It's a python compiler written in rust, and rust can be compiled into web assembly. It's a pretty cool project, but it's still in beta: https://github.com/RustPython/RustPython
For now, it certainly not work with our codebase, as from my testing, even basic asyncio or sockets didn't seem to work, as some of the standard library tooling that requires implementation specific logic just isn't there yet. But that's to be expected considering the WIP status of this project, however it could be something to keep an eye on and once more language features are actually supported, this might just be the way to go about this.
They do have a demo version where the compiler is already running in WA hosted on their github pages: https://rustpython.github.io/demo/