python

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 25 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const Version = "3.12.13"

Variables

This section is empty.

Functions

func BundledDirectory

func BundledDirectory() (string, error)

func Interpreter

func Interpreter(directory string) string

func Run

func Run(ctx context.Context, input Command) error

func ValidateIndex

func ValidateIndex(index *string) error

Types

type Access

type Access struct {
	Ready     *Ready
	Directory string
}

type Command

type Command struct {
	Executable  string
	Arguments   []string
	Directory   string
	Environment map[string]string
}

type Execution

type Execution struct {
	Base    *Ready
	Skills  []Access
	Session string
	Cache   string
	Index   *string
	// contains filtered or unexported fields
}

func (*Execution) Close

func (execution *Execution) Close() error

func (*Execution) Variables

func (execution *Execution) Variables() map[string]string

type File

type File struct {
	Path   string  `json:"path"`
	Size   uint64  `json:"size"`
	SHA256 string  `json:"sha256"`
	Link   *string `json:"link,omitempty"`
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(profile string, options Options) (*Manager, error)

func (*Manager) Collect

func (manager *Manager) Collect(ctx context.Context, current string) error

func (*Manager) Configure

func (manager *Manager) Configure(index *string) error

func (*Manager) Ensure

func (manager *Manager) Ensure(ctx context.Context, requirement *Requirements) (*Ready, error)

func (*Manager) Execution

func (manager *Manager) Execution(ctx context.Context, session protocol.SessionID, skills []Access) (*Execution, error)

func (*Manager) Preparations

func (manager *Manager) Preparations() []protocol.PythonPreparation

func (*Manager) Refresh

func (manager *Manager) Refresh(ctx context.Context, ready *Ready) (*Ready, error)

func (*Manager) Retain

func (manager *Manager) Retain(requirements []Requirements)

func (*Manager) SuspendCollection

func (manager *Manager) SuspendCollection()

SuspendCollection keeps environments whose requirements could not be read.

type Options

type Options struct {
	RuntimeDirectory string
	Environment      []string
	Run              func(context.Context, Command) error
	Now              func() time.Time
	Changed          func([]protocol.PythonPreparation)
}

type Ready

type Ready struct {
	Python      string
	Environment string
	Runtime     string
	// contains filtered or unexported fields
}

func (*Ready) Close

func (ready *Ready) Close() error

func (*Ready) MCP

func (ready *Ready) MCP(command string, arguments []string, environment map[string]string, inheritedPath string) (string, []string, map[string]string, error)

type Requirements

type Requirements struct {
	Package protocol.PluginReference
	Content string
}

func NewRequirements

func NewRequirements(reference protocol.PluginReference, content string) (*Requirements, error)

func (Requirements) Key

func (requirements Requirements) Key(identity string) string

type Runtime

type Runtime struct {
	Root     string
	Python   string
	Identity string
	// contains filtered or unexported fields
}

func BundledRuntime

func BundledRuntime() (*Runtime, error)

func OpenRuntime

func OpenRuntime(directory string) (*Runtime, error)

func (*Runtime) Verify

func (value *Runtime) Verify(ctx context.Context) error

Jump to

Keyboard shortcuts

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