Python Forum
Python to .so library in Ubuntu for web server
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python to .so library in Ubuntu for web server
#1
Hi - In my project are trying to use python code in a web server. However for various reasons we are not allowed to actually put the python code on the web server itself. The idea that came up is to compile the python code into a shared library that the c++ web server code can call when requested.
To that end, is there a way to compile a python code/project into C++ shared object (.so)? This means providing an "h-file" as well.
If someone knows and could shed light on this, I'd be most grateful :)
Additionally if someone has an additional suggestion other than to compile to a .so - I'd be interested in alternatives as well.

Thanks,
Jeff
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python in Singularity Container on Ubuntu erdemath 0 904 Aug-31-2022, 02:17 PM
Last Post: erdemath
  Python icons in Ubuntu KatManDEW 4 73,216 Aug-12-2022, 08:33 AM
Last Post: rob101
  Python 3.8 on Ubuntu 20.04 erdemath 1 1,367 Mar-07-2022, 09:31 PM
Last Post: Larz60+
  How to take the tar backup files form remote server to local server sivareddy 0 1,895 Jul-14-2021, 01:32 PM
Last Post: sivareddy
  Python script in Ubuntu core Nithin_Kumar 1 3,362 May-11-2021, 01:14 AM
Last Post: Skaperen
  Python Program running a lot slower after change to Ubuntu hubenhau 1 2,885 Mar-02-2021, 05:01 PM
Last Post: Serafim
  Can't install pip for Python 3.7.4 in Ubuntu virtual OS netbids 9 6,237 Dec-31-2019, 04:42 AM
Last Post: netbids
  (python-)rtmidi/Ubuntu Spiekes 1 2,370 Oct-09-2019, 10:27 PM
Last Post: metulburr
  Python and Ubuntu newbieAuggie2019 8 4,250 Sep-24-2019, 02:37 PM
Last Post: perfringo
  Python 2.7 and Ubuntu 19.04? ProDigit 2 4,597 May-25-2019, 12:03 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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