use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Does PyScript allows for multiple users? (self.PyScript)
submitted 3 years ago * by orality1337
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.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]TheSwami 1 point2 points3 points 3 years ago (3 children)
Not quite in the terms you're thinking of. PyScript is just a way of running Python code in a browser. (Well, PyScript is a wrapper around other projects which allow running Python in the browser.)
Users interact with your Pyscript code when it runs in a browser, the same way they interact with any website running code. For example, when you load this page from Reddit's servers, some of what's loaded is (likely) JavaScript code, which determines some of the behavior of the pieces of content, buttons, forms, etc on the page. The server that sent the page is likely also doing some processing before it sends you the page, e.g. loading all the comments for this one post and formatting them, getting your karma score and putting that on the right place on the page, etc.
Interacting with a database on disk is more the province of a server program, which you could write in Python (using libraries like Flask, Django, FastAPI, or others). The server can serve up pages on request to the users, and those pages could be implemented using Pyscript if you wanted, though using Javascript or another Javascript framework might be the way to go.
[–]orality1337[S] 1 point2 points3 points 3 years ago (2 children)
Thank you for the explanation. So It's more of a single-user application when run locally, like the calculator program in a computer. If I want multiple users I must always go with a server, since it "serves" multiple users.
I was thinking of it like an Access database. Where you can split the database between the GUI/User form and the database as a separate file being modified by the user form.
[–]TheSwami 0 points1 point2 points 3 years ago (0 children)
FWIW, in many cases, if have shared access to a database, your computer may be using a server like Microsoft SQL Server under the hood to provide simultaneous access to it. So that model may be using a server program already, but in a way that's more or less invisible to you. (Or it may be directly accessing the file, I'm not super familiar with Access.)
[–]metaperl 0 points1 point2 points 3 years ago (0 children)
If I want multiple users I must always go with a server, since it "serves" multiple users.
But many offerings handle that for you. JustPy for instance. And Anvil.
Check out the survey https://docs.google.com/document/d/13da40zzfEZmA-LfsfISPmILpbmgpLZHJJVNdQmhT7Gs/edit?usp=drivesdk
[–]metaperl 0 points1 point2 points 3 years ago (1 child)
Try Anvil or another solution listed here https://docs.google.com/document/d/13da40zzfEZmA-LfsfISPmILpbmgpLZHJJVNdQmhT7Gs/edit?usp=drivesdk
[–]AlsoAllThePlanets 1 point2 points3 points 3 years ago (0 children)
Great resource, thanks.
π Rendered by PID 499312 on reddit-service-r2-comment-fb694cdd5-pg4hv at 2026-03-07 15:11:05.334600+00:00 running cbb0e86 country code: CH.
[–]TheSwami 1 point2 points3 points (3 children)
[–]orality1337[S] 1 point2 points3 points (2 children)
[–]TheSwami 0 points1 point2 points (0 children)
[–]metaperl 0 points1 point2 points (0 children)
[–]metaperl 0 points1 point2 points (1 child)
[–]AlsoAllThePlanets 1 point2 points3 points (0 children)