Models

class ultra_piston.Runtime(**data)

Represents a supported language runtime.

Attributes:
language
The programming language.
version
The specific version of the language (e.g., “3.10.0”).
aliases
Alternate names or shortcuts for the language.
runtime
The runtime environment identifier, if applicable.
Parameters:

data (Any)

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameters:

data (Any)

model_config = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class ultra_piston.ExecutionOutput(**data)

Represents the complete output from a code execution request.

Attributes:
language
The language used to execute the code.
version
The language version used.
run
Output from the runtime execution stage.
compile
Output from the compilation stage, if compilation was required.
compile_memory_limit
Memory limit (in bytes) used during compilation.
compile_timeout
Timeout (in milliseconds) for the compilation stage.
Parameters:

data (Any)

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameters:

data (Any)

model_config = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class ultra_piston.File(**data)

Represents a file to be sent for execution.

Attributes:
name
The name of the file (e.g., “main.py”).
content
The raw contents of the file.
encoding
The encoding format used for the content. Defaults to “utf8”.
Parameters:

data (Any)

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameters:

data (Any)

model_config = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class ultra_piston.Package(**data)

Represents a package or dependency available for a specific language.

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

data (Any)

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameters:

data (Any)

model_config = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class ultra_piston.RunStage(**data)

Represents the result of the runtime execution stage.

Attributes:
code
Exit code of the execution process.
output
Combined standard output and or error.
stderr
Standard error stream.
stdout
Standard output stream.
signal
Signal that caused the process to terminate, if any.
Parameters:

data (Any)

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameters:

data (Any)

model_config = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class ultra_piston.Runtime(**data)

Represents a supported language runtime.

Attributes:
language
The programming language.
version
The specific version of the language (e.g., “3.10.0”).
aliases
Alternate names or shortcuts for the language.
runtime
The runtime environment identifier, if applicable.
Parameters:

data (Any)

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameters:

data (Any)

model_config = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].