1
0 Comments

Using Transcrypt for Python Front-end web development

I had posted on IH a while back about creating React front-end web applications with Python using the Transcrypt Python-to-JavaScript transpiler, and how I was working on a book to document the workflow I was using.

I did finally get the book done, but in addition to that I also created a FREE e-book available on Leanpub & Gumroad that is a quick tutorial giving you an idea of the general approach. It's a high-level overview of what I cover in the the first part of the React to Python book, but it will let you see how it works first hand.

In general, Transcrypt transpiles code similar to how TypeScript does. In the end, it all ends up as JavaScript that can run in a web browser. But in this case, the original source code is Python that, thanks to sourcemaps, can even be pulled up in the web browser for debugging purposes.

Most of the applications I develop as a freelancer are CRUD apps for in-house use, and being able to code React web applications in Python has been a joy for me. I don't necessarily expect this approach to become a new standard way of doing things by any means, but I'd imagine there are quite a few Python devs out there that might appreciate what Transcrypt can do.

If anyone has questions, feel free to ask. I've seen a lot of incorrect assumptions being made about methods of using Python for creating browser based apps, so I'd be happy to try and clear up some of those misconceptions based on my own experience over the last few years.

posted to Icon for group Developers
Developers
on May 20, 2021
Trending on Indie Hackers
I'm a lawyer who launched an AI contract tool on Product Hunt today — here's what building it as a non-technical founder actually felt like User Avatar 152 comments Never hire an SEO Agency for your Saas Startup User Avatar 91 comments A simple way to keep AI automations from making bad decisions User Avatar 66 comments “This contract looked normal - but could cost millions” User Avatar 54 comments 👉 The most expensive contract mistakes don’t feel risky User Avatar 41 comments Are indie makers actually bad customers? User Avatar 34 comments