python

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package python provides the Python language adapter for goru.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Python

type Python struct{}

Python implements the executor.Language interface for Python execution.

func New

func New() *Python

New returns a Python language adapter.

func (*Python) Args

func (p *Python) Args(wrappedCode string) []string

Args returns the command-line arguments for the Python interpreter.

func (*Python) Module

func (p *Python) Module() []byte

Module returns the CPython 3.12 WASM binary (VMware Labs WASI build).

func (*Python) Name

func (p *Python) Name() string

Name returns "python".

func (*Python) SessionInit

func (p *Python) SessionInit() string

SessionInit returns code to set session mode flag for Python.

func (*Python) WrapCode

func (p *Python) WrapCode(code string) string

WrapCode prepends the goru stdlib to user code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL