Originally posted on makeuseof.
PyScript is a framework, built with Pyodide, allowing you to run Python code in a browser. It’s still in its infancy, but the dev team has recently released a beta version.
Using the tool, developers can write Python directly inside HTML, without the need for a server backend like Flask or Django.
Although it’s still in beta, PyScript already comes with some impressive features worth trying out.
1. Easy to Set Up
Getting started with PyScript is as easy as linking to its CDN in your HTML head. You can also download its source code and host the project’s files on your own site. While the latter option has some small benefits, linking to the CDN is easier.
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
PyScript Gives Python a Boost