Python Forum
embedded Python scripts - is it worthwhile
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
embedded Python scripts - is it worthwhile
#1
i have an application i am creating. it's still in the planning stage. it could be written in C but i do expect to prototype it in Python. it will allow users to create scripts particularly to customize some actions. i am thinking about how best to run these scripts. i could run them as commands by executing Python to do so. but it might be easier to use embedded Python. has anyone here ever used embedded Python particularly to add scripting to a non-Python application, that could summarize the scale of work involved? i do expect the need to run multiple scripts concurrently.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
I think it can be worthwhile, especially if you have an API to wrap. I’ve embedded Python in AutoCAD, it’s pretty slick as it’s possible to load python functions as commands https://github.com/CEXT-Dan/PyRx

I used boost::python to do the heavy lifting. Might be a pain in C if you plan on wrapping something big
Reply
#3
(Feb-12-2024, 08:58 PM)Skaperen Wrote: has anyone here ever used embedded Python particularly to add scripting to a non-Python application, that could summarize the scale of work involved? i do expect the need to run multiple scripts concurrently.

Oh my gosh... I did it with Visual Components and was enforced to use Python 2.7. I think they programmed it with C# and they used IronPython to embed Python. The funniest part was, that they relied on Python for some plugins. I don't know the current state of the application because I'm no longer a user of it.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#4
i have another project that i want to do embedded scripts in. this project make more sense to just do in Python (it's a text editor). maybe i should move ahead with this project to just try it out. the idea with this one is that it is script driven, not interactive.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  images and pixels in typical Python scripts Skaperen 0 1,244 Oct-14-2021, 12:29 AM
Last Post: Skaperen
  Creating Python scripts in Visual Studio Code Sanjish 4 2,609 Dec-22-2020, 12:32 PM
Last Post: snippsat
  suid scripts in python? Skaperen 0 2,160 Sep-29-2019, 10:28 PM
Last Post: Skaperen
  Can copyright be applied python scripts? tim777 3 4,894 Sep-04-2019, 12:20 PM
Last Post: DeaD_EyE
  Finding Scripts for Python Johnny1998 1 2,213 Jul-31-2019, 08:07 PM
Last Post: Yoriz
  embedding Python script in shell scripts Skaperen 5 8,293 Mar-23-2018, 01:07 AM
Last Post: Skaperen
  Python 2.7.14 install on Windows missing Scripts directory and pip #bug bluejedi 4 16,506 Dec-15-2017, 04:12 PM
Last Post: bluejedi
  Transcrypt 3.6.56 Python to Javascript compiler now supports embedded JSX. jacques_de_hooge 1 2,690 Dec-01-2017, 05:30 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

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