Python wrapper and version management tool for the solc Solidity compiler.
77
Evaluation — 77%
↑ 1.05xAgent success when using this tile
A utility that ensures a specific Solidity compiler binary is present locally, installing it when necessary with optional progress reporting and configurable install roots.
0.8.20 and it is not present, the utility downloads the binary to the default install location and returns a filesystem path that exists and includes the requested version. @test@generates
from pathlib import Path
from typing import Callable, Optional
def ensure_solc(
version: str,
install_root: Optional[Path] = None,
show_progress: bool = False,
progress_handler: Optional[Callable[[str, int, int], None]] = None,
) -> Path:
"""
Return a path to the requested compiler binary, downloading it if missing.
- install_root: optional directory under which to place and look up the binary.
- show_progress: when True, progress_handler (if provided) receives updates like (label, bytes_downloaded, total_bytes or -1 while unknown).
"""Used to discover, download, and validate specific Solidity compiler binaries with optional progress hooks and configurable install roots.
Install with Tessl CLI
npx tessl i tessl/pypi-py-solc-xevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10