mozillazg / pypy

The unofficial GitHub mirror of PyPy (mirrored via https://github.com/mozillazg/job-mirror-hg-repos)
https://foss.heptapod.net/pypy/pypy
Other
444 stars 64 forks source link

Using pypy sandbox for indie game for scripting game assets #13

Open MartyMcFlyInTheSky opened 1 year ago

MartyMcFlyInTheSky commented 1 year ago

I'm looking for a secure and relatively performant environment to run python scripts that influence the game mechanics of my game. The user should be able to mod the game and create python scripts along with other game assets and be able to upload these assets to a server where others can download it. Needless to say these scripts should be run in a contained environment to not cause harm for the unsuspecting end user.

I was led here by this and thought I might look into it. My setup is a bit different that the game will be written in C++ and have pyhton c API bindings for the game API.

As I get from the wiki the sandbox is currently deprecated and a new one is in development progress. I have now two questions:

1) Is pypy sandbox suitable for my use case? 2) How is develpment coming along? Can the new sandbox be reliably used alredy?

I like the intricacies of the pypy sandbox as opposed to the not really viable alternatives. Maybe someone knows more as well, I'm open.

Sorry for opening an issue here but I didn't find a discussion thread :)

mozillazg commented 1 year ago

@MartyMcFlyInTheSky This repository is an unofficial read-only mirror. Feel free to create an issue to the official repository: https://foss.heptapod.net/pypy/pypy/-/issues