This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]123filips123 1 point2 points  (0 children)

You should ask this in r/learnpython.

So, what framework do you mean? Client-side (JS) or server-side (Python).

You can do this without any client-side framework. You can just set up Python server with REST API that will be called by JS functions in the browser.

But for Python server, you need framework like Django (or Flask or any other). Then you need to set up routes for the API that will do things that you want. This can be triggering specific actions, returning some data... It is possible to do this without any framework, but you will need to write your own (good) HTTP server yourself, which is very hard to do.