python

package
v0.0.0-...-d54492c Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRuntimeForProject

func IsRuntimeForProject(ctx context.Context, fs afero.Fs, dirPath string, sdkConfig hooks.SDKCLIConfig) bool

IsRuntimeForProject returns true if dirPath is a Python project

Types

type Python

type Python struct {
}

Python runtime type

func New

func New() *Python

New creates a new Python runtime

func (*Python) HooksJSONTemplate

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

HooksJSONTemplate returns the default hooks.json template

func (*Python) IgnoreDirectories

func (p *Python) IgnoreDirectories() []string

IgnoreDirectories is a list of directories to ignore when packaging the runtime for deployment.

func (*Python) InstallProjectDependencies

func (p *Python) InstallProjectDependencies(ctx context.Context, projectDirPath string, hookExecutor hooks.HookExecutor, ios iostreams.IOStreamer, fs afero.Fs, os types.Os) (output string, err error)

InstallProjectDependencies is unsupported by Python because a virtual environment is required before installing the project dependencies. TODO(@mbrooks) - should we confirm that the project is using Bolt Python?

func (*Python) Name

func (p *Python) Name() string

Name prints the name of the runtime

func (*Python) PreparePackage

func (p *Python) PreparePackage(ctx context.Context, sdkConfig hooks.SDKCLIConfig, hookExecutor hooks.HookExecutor, opts types.PreparePackageOpts) error

PreparePackage will prepare and copy the app in projectDirPath to tmpDirPath as a release-ready bundle.

func (*Python) SetVersion

func (p *Python) SetVersion(version string)

SetVersion sets the Version value

func (*Python) Version

func (p *Python) Version() string

Version is the runtime version used by the hosted app deployment

Jump to

Keyboard shortcuts

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