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
Hi IH — quick update. The MVP is live. User Avatar 33 comments Building ExpenseSpy solo, no funding — launching June 17 on iOS & Android User Avatar 26 comments Day 7: 51 people answered my question. I wasn't ready for what they said. User Avatar 18 comments I Built a Football Sentiment Platform in 18 Days. The World Cup Starts in 7 Days. Now I Need Distribution. User Avatar 17 comments Built an n8n booking alert system — is cold outreach dead for B2B micro-tools? User Avatar 16 comments I built a $5/1k-listing CRE data API because CoStar is overkill for first-pass scans User Avatar 14 comments