from ._sdk import Governance, IceboxClient, IceboxError
class Workspace:
def __init__(self, target: str, url: str = "http://127.0.0.1:8443"):
self.target = target
self.client = IceboxClient(url)
self.client.accept_charter(self.target)
self.client.add_scope(self.target)
def execute(self, module: str, sandbox: bool = False, approved: bool = True, options: dict | None = None) -> dict:
return self.client.run_module(module, self.target, sandbox=sandbox, approved=approved, options=options)
def audit(self, n: int = 20) -> list[dict]:
return self.client.audit(n)
__all__ = ["Governance", "IceboxClient", "IceboxError", "Workspace"]
__version__ = "0.2.0"