PythSol compiles a typed Python subset to a native SBF program and an Anchor-style IDL. It does not run your Python, and it does not generate Rust.
def increment(authority: Signer, counter: Mut[Counter], by: u64) -> None:
require(counter.authority == authority.key, CounterError.Unauthorized)
counter.count += by
Writes pysol.toml, a program, and a LiteSVM test.
Builds the program and runs it in LiteSVM.
Writes the .so, the IDL, the generated C, and a client.
Runs solana program deploy. Mainnet needs --yes.
Install, the language, and the CLI.
Read the docsCheck a program and read the C. Compile stays on this machine.
Try itCounter, ledger, vault, and escrow.
Open an exampleThis is not a published package and not a token. Version 0.1.0. Compute-unit comparisons against Anchor are not claimed here.