HN user

ntoll

703 karma
Posts12
Comments131
View on HN

Ever wanted to quickly share and run Python code via a URL? Well, now you can!

PySnippets is JSFiddle or CodePen but for Python in the browser (via PyScript).

It's a static website. All the logic runs in the browser. No back-end or cloud storage is used - instead, code is URL encoded. Share the URL, your code is in there already, and the static target re-hydrates it then runs it. Yeah, yeah, "snippets" because this is for small scripts. ;-)

This is a goofy "fun" project just to see how quickly something like this could be created. The initial version took just 3 hours to build. Here's a sample (SNAKE game) project: https://is.gd/q3209l (click through to see how its done.)

Feedback welcome..! Thank you!

I wonder what old school international grandmasters like Theydon Bois (France), Pim Li Ko (China) and Will Esden-Green (UK) would think of the modern game... We've lost the creativity, bravery and elegance of such players, from a time when taking part was more important than winning.

Some fun archaeology and digging around into the dark and weird corners of PyPI. I, for one, didn't realise that "Kenneth Reitz" is a perfectly valid version number! :-)

I'm an open source contributor. I've worked/collaborated with Adafruit. They support the ecosystem. Perhaps they don't blow their own trumpet in this respect (and should, so you could see how the do give back).

My experience is a counter example of your comment, "...instead of contributing to the greater success of the open source maker movement that enables their existence".

The "bits that are missing" relate to Python's standard library, which is huge. MicroPython has svelte versions of many of Python's standard library modules... Pick and choose what you need, given your specific context. MicroPython is pretty friendly in that respect.

FWIW, MicroPython, as a language, is a complete reimplementation of Python (and an amazing feat of engineering on the part of Damien and his collaborators).

LambdaMoo, BayMoo (and the now defunct ParkMoo) were all favourite haunts of mine in the mid-90s when I was at university. Perhaps I'm feeling nostalgic for those innocent pre-social-media times: I'm in the process of writing a Python "MOO" as a weekend fun project -- a sort of interactive literary world inhabited by other writers / creators / explorers.

If you're interested in this sort of thing, Richard Bartle's "Designing Virtual Worlds" is the classic to read.