Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81362 > unrolled thread

Re: Embedded python 'scripting engine' inside Python app

Started byStefan Behnel <stefan_ml@behnel.de>
First post2014-11-23 13:49 +0100
Last post2014-11-23 13:49 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Embedded python 'scripting engine' inside Python app Stefan Behnel <stefan_ml@behnel.de> - 2014-11-23 13:49 +0100

#81362 — Re: Embedded python 'scripting engine' inside Python app

FromStefan Behnel <stefan_ml@behnel.de>
Date2014-11-23 13:49 +0100
SubjectRe: Embedded python 'scripting engine' inside Python app
Message-ID<mailman.16181.1416746999.18130.python-list@python.org>
Chris Angelico schrieb am 23.11.2014 um 11:35:
> On Sun, Nov 23, 2014 at 9:28 PM, Patrick Stinson wrote:
>> Is there a better and more secure way to do the python-within-python in
>> order allow users to automate your app?
> 
> More secure? Basically no. You could push the inner script into a
> separate process, but I would recommend simply acknowledging the
> insecurity. Embrace the lack of security and call it a debugging
> feature - make it possible to introspect, control, manipulate internal
> structures. Feature, not flaw. :)

As the author of Lupa, I know that some people have successfully and safely
embedded Lua in Python as a simple, small and object-oriented scripting
language in a sandbox.

https://pypi.python.org/pypi/lupa

The overall syntax isn't quite as great as that of Python, but as long as
you mostly stick to "here's a bunch of functions you can call" or "here's
an object, go and call some methods on it" kind of APIs, there isn't all
that much of a difference either.

Stefan

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web