Re:PyPI: Python packets steal AWS keys from users
by ciupicri on Monday June 27, 2022 @08:42AM
(#31893747)
Python had some sandboxing attempts long time ago, like 20 years if not more, but without much success. Zope - one of the first web frameworks - needed one, but if I remember correctly it broke around Python 2.5, so you had to use Zope with an old version of Python.
https://wiki.python.org/moin/SandboxedPython has some details