python

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package python adapts an explicitly selected Python runtime to pdf.Runner.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BundledScriptPath

func BundledScriptPath() (string, error)

BundledScriptPath returns the script shipped in the document module. Calling it does not select a Python interpreter or execute the script.

Types

type Config

type Config struct {
	PythonPath  string
	ScriptPath  string
	Environment []string
	WorkingDir  string
}

Config is entirely Host-owned. No field is discovered from the environment.

type Runner

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

Runner launches one isolated command per request.

func New

func New(config Config) (*Runner, error)

New validates an explicit Python adapter configuration.

func (*Runner) Run

Run implements pdf.Runner.

Jump to

Keyboard shortcuts

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