python

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts struct {
	RenameLocals   bool
	ReorderFields  bool
	ReorderImports bool
	Format         bool
	Seed           int64
}

Opts configures Python source transform.

type Result

type Result struct {
	Renamed   int
	Reordered int
	Changed   bool
}

Result summarizes Python transform.

func Transform

func Transform(src []byte, opts Opts) ([]byte, Result, error)

Transform applies best-effort semantic-preserving transforms to Python source.

Jump to

Keyboard shortcuts

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