Help us shape the future of Go! Take the 2026 Go Developer Survey

python

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package python holds the modlock library that Python mods import as modlock, and downloads the Pyright checker and the Node.js that runs it.

modlock-sdkgen writes modlock/__init__.py from the schema and library.py; modlock/wire.py and the runtime bridge's stub _modlock.pyi are handwritten.

Index

Constants

View Source
const NodeVersion = "24.21.0"

NodeVersion is the Node.js release that runs Pyright.

View Source
const PyrightVersion = "1.1.414"

PyrightVersion is the Pyright release that checks mods.

Variables

View Source
var Library embed.FS

Library holds the library's package under modlock/ and the stub _modlock.pyi.

Functions

func Checker

func Checker(ctx context.Context) (node, pyright string, err error)

Checker returns Node.js and the Pyright script it runs, downloading both into the user cache the first time.

func Node

func Node(ctx context.Context) (string, error)

Node returns the Node.js executable for this system.

Types

This section is empty.

Jump to

Keyboard shortcuts

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