ntoll 8 hours ago

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!

  • russfink 8 hours ago

    Can it do live sharing?

    • ntoll 7 hours ago

      You mean, collaborative coding a la Google docs?

      Nope. :-)

      There is no back-end through which one could coordinate such things. It's all done in-browser.