Models

class ultra_piston.CompileStage(**data)

Represents the result of the compilation stage, if applicable.

Attributes:
codeOptional [int]
Exit code of the compiler.
outputstr
Combined standard output and error from the compiler.
stderrstr
Standard error stream from the compiler.
stdoutstr
Standard output stream from the compiler.
signalOptional [str]
Signal that caused the compiler process to terminate, if any.
Parameters:

data (Any)

class ultra_piston.ExecutionOutput(**data)

Represents the complete output from a code execution request.

Attributes:
languagestr
The language used to execute the code.
versionstr
The language version used.
runRunStage
Output from the runtime execution stage.
compileOptional [CompileStage]
Output from the compilation stage, if compilation was required.
compile_memory_limitOptional [int]
Memory limit (in bytes) used during compilation.
compile_timeoutOptional [Union[int, float]]
Timeout (in milliseconds) for the compilation stage.
Parameters:

data (Any)

class ultra_piston.File(**data)

Represents a file to be sent for execution.

Attributes:
nameOptional [str]
The name of the file (e.g., “main.py”).
contentstr
The raw contents of the file.
encodingLiteral["base64", "hex", "utf8"]
The encoding format used for the content. Defaults to “utf8”.
Parameters:

data (Any)

class ultra_piston.Package(**data)

Represents a package or dependency available for a specific language.

Attributes:
languagestr
The programming language the package is for.
language_versionstr
The version of the language the package is associated with.
installedbool
Whether the package is installed and available.
Parameters:

data (Any)

class ultra_piston.RunStage(**data)

Represents the result of the runtime execution stage.

Attributes:
codeOptional[:class:`int]`
Exit code of the execution process.
outputstr
Combined standard output and or error.
stderrstr
Standard error stream.
stdoutstr
Standard output stream.
signalOptional [str]
Signal that caused the process to terminate, if any.
Parameters:

data (Any)

class ultra_piston.Runtime(**data)

Represents a supported language runtime.

Attributes:
languagestr
The programming language.
versionstr
The specific version of the language (e.g., “3.10.0”).
aliasesList[str]
Alternate names or shortcuts for the language.
runtimeOptional [str]
The runtime environment identifier, if applicable.
Parameters:

data (Any)