Home > Articles > Programming > Python

Python Libraries

  • Print
  • + Share This

Restricted Execution

Restricted Execution is the basic framework in Python that allows the segregation of trusted and untrusted code. The next modules prevent access to critical operations mostly because a program running in trusted mode can create an execution environment in which untrusted code can be executed with limited privileges.

rexec

The rexec module implements a basic restricted execution framework by encapsulating, in a class, the attributes that specify the capabilities for the code to execute. Code executed in this restricted environment will only have access to modules and functions that are believed to be safe.

Bastion

The Bastion module provides restricted access to objects. This module is able to provide a way to forbid access to certain attributes of an object.

  • + Share This
  • 🔖 Save To Your Account

Related Resources

There are currently no related titles. Please check back later.