2 min

Tags in this article

, ,

Once embedded, the scripts can be executed within the browser without any server-based requirements.

The new PyScript project was announced this weekend at PyCon US 2022 and acts as a wrapper around the Pyodide project, which loads the CPython interpreter as a WebAssembly browser module.

Fabio Pliger, Principal Software Architect at Anaconda, detailed the new PyScript in a blog post. “Supporting open source and creating tools that enable people to do more with less are why I joined Anaconda almost eight years ago,” he begins.

“We have high hopes that this will help Python take a serious step towards making programming and data science more accessible to everyone.”

Making the web “more friendly and hackable for everyone”

PyScript is a framework that allows users to create rich Python applications in the browser using a mix of Python with standard HTML. PyScript aims to give users a first-class programming language that has consistent styling rules, is more expressive, and is easier to learn.

“We wanted to provide a reliable and accessible framework for creating and shipping applications to any hardware and software platform, while still having fun,” Pliger claims. “In pursuing this, we did not want to create an entirely new technology stack. We wanted to start from the best options the ecosystem provides today.”

Allowing Python to leverage HTML, CSS and JavaScript conventions solves those two challenges, Pliger says. But it also addresses general web application building, packaging, distribution, and deployment challenges.

“Overall, we hope to see the popularity and adoption of HTML, CSS, and JavaScript rise alongside Python, ultimately making the web a more friendly and hackable place for everyone,” he adds.

“This is the exciting beginning for supporting new ways of programming, building, sharing, and deploying applications. Pliger continues. “Ultimately, we should be spending our time thinking and writing applications to solve the real problems we have, not dealing with mundane, hardware-induced challenges.”

Pliger ends his piece with a call to action: “Let’s make programming more fun and simple.”

Also read: Python 3.10.1 is now available.