Python Forum
Is it possible to import / run compiled Python (.pyd) file in web browser?
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is it possible to import / run compiled Python (.pyd) file in web browser?
#1
Hi,

I am new to Python and am trying to import a compiled Python library file (.pyd) into a Python script in a web browser. I have been trying to do this with Brython but have found that it is not possible in that environment. Brython cannot parse / execute compiled Python.

My problem is that I don't know if it's just Brython that this can't be done in or if it is just not possible in a web browser at all. I can find references to how the generic Python include will look for .py, .pyc and then .pyd extensions, but I cannot find anything online that deals with how to do it in a web browser, or indeed if it can even be done in a web browser. This leads me to suspect maybe it is not possible?

Please could someone let me know - is it possible to include a compiled python (.pyd) file into a web-browser Python script? If it is, please could someone point me in the right direction? I am not looking for a solution or finished code or anything - I'm happy to do tons of research and coding - I just need help getting started as I've drawn blanks so far.

Thanks in advance.
Reply


Messages In This Thread
Is it possible to import / run compiled Python (.pyd) file in web browser? - by dvid - Dec-19-2017, 04:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Creating a Browser Extension using Python j49857 3 1,197 Feb-13-2024, 10:49 PM
Last Post: j49857
  webdriver.remote to connect back existing browser without open new browser? gahhon 6 6,839 Feb-26-2019, 03:53 PM
Last Post: gahhon
  Enable error logging to browser for Python's Flask under Apache + mod_wsgi nikos 1 3,103 Sep-18-2018, 09:15 PM
Last Post: nikos

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020