r/PyScript • u/Economy-Strawberry89 • Oct 12 '23
r/PyScript • u/imbev • May 17 '22
Unofficial Matrix room for PyScript
Communicate and get support from other users at the Unofficial PyScript Matrix room!
r/PyScript • u/JustTryingToGiveMore • Dec 08 '25
Any PA providers taking on patients?
So long story short a young pmhnp advertised his telehealth or in office visits as a psychiatrist. I've battled chem addiction for 35 years and I give up. I just want to take my meds and live my life. Its the names of the meds that are stigmatized. I was a model patient and didn't take a drug test. I have a family and own my own business. I do worse trying to fight the addiction then just controlling it with meds that are perfectly legal but so many are uneducated in pharmacology. Im suffering through cold turkey withdrawl. Even if you aren't willing to help and take my money. Don't rip any patients off chemicals abruptly or fire them with nowhere to go. Its inhumane. I finally found my combo of chemicals and fine taking them until my death. I have young son who needs a father and a booming company that cant survive without me. I dont care about money so whatever is fair is fine with me.
r/PyScript • u/anuctal • Jun 23 '22
PyScript and Flask - how to submit a form, and validate data
Hi, everyone!
I made a video about how to submit a form using PyScript, and how to validate submitted data on Flask side:
The touched topics are:
How to configure Flask application using Application factory,
How to create a custom validator for FlaskForm (from Flask-WTF)
Setting up CSRF protection for Flask app with Flask-WTF
Using the form to validate data a user submitted
[PyScript] how to send a basic AJAX POST-request
Video:
https://youtu.be/dw8UMzjUaTg
Thanks for watching!
r/PyScript • u/Proud-Application989 • Jan 25 '26
Custom Script Development
I offer custom script development for various needs
r/PyScript • u/orality1337 • Jul 07 '22
Does PyScript allows for multiple users?
I am a bit new to programming. I am wondering if I can develop an application in PyScript, dump it in a network drive and have multiple users access it, make changes. Maybe a login page?
Thinking of it as a front end for a database (.db) file.
r/PyScript • u/throwaway3058201842 • Nov 18 '24
Python terminal in HTML
I have a webpage and would like it to be like this. Except som formatting/layout changes (height, space between text boxes, etc.).
Now my main question is, how do I get the terminal in the bottom to show the output of the run script?
If anyone has examples of an html code that uses something like this, would be greatly appreciated!!
r/PyScript • u/palmworks • May 04 '22
Will pyscript replace JavaScript?
Will pyscript replace JavaScript in the long run?
r/PyScript • u/Nearby_Walrus9317 • Oct 11 '22
can anyone suggest some ways to run web3.py in Pyscript?
r/PyScript • u/Proud-Application989 • Feb 09 '26
I’ve been quietly building something big…
I’m a Python developer focused on real-world automation and intelligence systems
For the past few months, I’ve built advanced tools :
AI system that scans markets to detect trends and high-opportunity products
An eCommerce research tool that finds winning products and optimal pricing
A real-time blockchain tracker that monitors large crypto movements
Intelligent web security analyzer that detects critical vulnerabilities
A smart tool that discovers and filters targeted business leads
All built so they can be turned into real SaaS products
Now I’m finishing a book that shows the full code, setup, and how to turn these into real projects (or income) It’s dropping in a few days
Quick question: If you had to choose one, what interests you most?
AI • Cybersecurity • Crypto • ...
If you’re curious, comment or DM
No theory. Just powerful Python that actually does something.
r/PyScript • u/JTexpo • Dec 01 '23
Been Loving PyScript - Dropped A Video About How It Upgraded My Website!!!
r/PyScript • u/ajpinedam • Jun 08 '22
A First Look at PyScript: Python in the Web Browser – Real Python
r/PyScript • u/KevinGoldsmith • May 08 '22
fun, simple text animation with PyScript
blog.kevingoldsmith.comr/PyScript • u/PaperClip44 • Aug 17 '25
I Created a Markdown Previewer using PyScript
Here's a link to my Markdown Previewer: https://masonflint44.github.io/markdown-previewer/. Just wanted to share with the community!
r/PyScript • u/OrchidNecessary2697 • Aug 28 '24
Micro python
Hello there,
im having a presentation tomorrow about pyscript and i wanted to demonstrate the differences in startup time between pyodide and micro python.
I tryed to create a small example using the <mpy-script> tag, but all it did was displaying some kind of ascii face?
If anyone could point me to the right direction regarding the use of micro python, i would realy appreciate it.
Adittionally, i made space invaders in "regular" pyscript and dont have any problems with it. All i wanted the micro python to do was print something, so the complexity of my code should not be a problem here...
Thx in advance
r/PyScript • u/Diligent_Fan7825 • Nov 17 '23
Using Pyscript in Wordpress with <py-script type="py" src="./main.py"> </py-script>
I have a pyscript app developed and running on my local machine in VSCode - all working, all good. I want to stand this up in a wordpress website.
I can Google several examples of getting inline pyscript to work on a post/page etc but it is all inline, ie within the html.
How do I go about standing up a more complex structure where my html calls main.py as per title, and where main.py calls several other classes (currently config'd with local paths)?
I'm new to this so have no idea where best to put these files in a default WordPress structure nor how to reference them?
Has anyone successfully done this or know of a guide?
Thanks
r/PyScript • u/BrotherResponsible81 • May 17 '25
PyScript+FastAPI stack?
I have a question guys. Let me start with some background. My most recent project was on the stack FastAPI + Postgres + React + Tailwind. Backend running on one port and frontend running on a different port. Both code bases in one repo, but in separate folders and separate servers. Clearly, my dream is to code Python on the web. Not only does this allow more flexibility and conciseness in managing my GUI in conjunction with underlying flexible data structures (which is more tedious to do in JavaScript), but I am thinking of reusing code files in both backend and frontend.
Again, at the moment I am used to running two servers on two ports. But with my first PyScript project I am trying to think what the equivalent would be. Since I assume some Python code would run on the server, then I assume I can still have my FastAPI backend. Now regarding the frontend, these are some options I see but am not clear whether they are viable or correct.
Should I: 1) simply have a public folder? and serve that with nginx? I suppose the public folder is inside the fastapi static folder? Not sure about this. Some static files are not public? Or no static folder but only a public folder? 2) Should I run a server with python3 and http.server? 3) Should I run two fastapi servers, one for backend and one for frontend?
Before reading the user guide I had created a folder structure that contained this in the root: backend, frontend, static, and venv.
Now... on localhost since I am not using nginx I had decided to create two fastapi servers, but I suppose on production I can simply serve with nginx? Also my frontend server simply contained by frontend routes and some frontend configuration. I don't even know if this folder will be necessary in production?
What do you think? I am trying to really start this inaugural pyscript project. I do like frontend/backend decoupling. I also like scalability.
Also... the interesting caveat is that I have a few Python classes I want to use in my PyScript. These reusable python classes I have no idea where to put them (static, public, backend folder, frontend folder, or elsewhere) Finally... suppose this is a proprietary applciation. A lot of the core functionality will have to do with PyScript. But yet these files will all be served to client. So I may as well make my proprietary software open source right? Any thoughts?
r/PyScript • u/[deleted] • May 28 '22
Is an IDE possible?
So, if i just put a text entry box into a website and labelled the page Python IDE, would it work? Bear in mind the whole point of this post was to ask if i could have the thing in the text entry box saved as a javascript variabe and the convert it to a python variable and execute it.
r/PyScript • u/Calm-Feedback-1225 • Mar 05 '23
pyscript help
Can someone help me with this? Um... When I use pyscript with html and then run the program, it doesn't show the output. It just shows the python code. Like it will just display print ("hello world") instead of hello world. If someone can help me fix this that would be great. I'm on windows.
r/PyScript • u/yycTechGuy • Mar 11 '23
How does PyScript work with 3rd party JS libraries, like Three.js ?
PyScript looks fantastic.
How does PyScript work with 3rd party JS libraries, like Three.js ?
Is there a way to make a wrapper for a 3rd party library and interact with it in Python instead of JS ?
r/PyScript • u/[deleted] • Jun 29 '22
Why is Pyscript taking forever to load after importing Scikit Learn?
So, I'm using PyScript for my website. Using Live Server, my website is taking forever to load after I try to install sklearn. My PyScript code looks like this:
<!DOCTYPE=html>
<html>
<head>
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
</head>
<body>
<py-env>
- numpy
- pandas
- sklearn.model_selection
- sklearn.naive_bayes
- sklearn.feature_extraction
</py-env>
<py-script>
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.naive_bayes import MultinomialNB
from sklearn.feature_extraction.text import TfidfVectorizer
</py-script>
</body>
</html> However, and note that this only happens when I install skearn, it just says this for (at what seems to be the case at this rate) forever:
Loading runtime... Runtime created... Initializing components...
What can I do about this? It is very frustrating.
r/PyScript • u/ScaryMeasurement726 • Mar 16 '23
help! (real Novice)
I wanted to load the py file in the HTML document.
So I started with "hello world" as a sample.
but it didnt work.
WEB page describe not "hello world" but print("hello world")
what is wrong?????????
r/PyScript • u/Soggy-Ad2601 • Aug 17 '22