SandboxPort

class baseten.sandbox.SandboxPort(*, target, name=None, protocol=None)

Bases: object

A port the sandbox exposes.

Parameters:
  • target (int)

  • name (str | None)

  • protocol (Literal['HTTP', 'TCP', 'UDP', 'TLS'] | str | None)

target: int

Port number in the sandbox, 1 to 65535.