HackerTrans
TopNewTrendsCommentsPastAskShowJobs

ntoll

no profile record

Submissions

PySnippets – easily write, run and share Python in the browser

pysnippets.org
3 points·by ntoll·11 months ago·3 comments

comments

ntoll
·11 months ago·discuss
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.
ntoll
·11 months ago·discuss
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!
ntoll
·11 months ago·discuss
Antonio is a star. He's also a very talented artist.