Python wrapper and version management tool for the solc Solidity compiler.
77
Evaluation — 77%
↑ 1.05xAgent success when using this tile
A utility that wraps compiler installation for a specific version with a cross-process lock so concurrent runs do not corrupt shared artifacts.
guarded_install acquires the shared lock, runs the installer callback once, and returns True. @testis_installed, and returns False without invoking the installer callback. @test@generates
from typing import Callable
def guarded_install(
version: str,
is_installed: Callable[[str], bool],
perform_install: Callable[[str], None],
wait_timeout: float | None = None,
) -> bool:
"""
Ensures installing the requested compiler version is coordinated across concurrent processes.
- Returns True if this call performed the install.
- Returns False if the version was already installed by the time the lock was acquired.
- Raises TimeoutError if the shared lock cannot be acquired before wait_timeout elapses (when provided).
- Propagates installer exceptions after releasing the lock.
"""Provides Solidity compiler installation helpers and cross-process locking primitives to coordinate installs. @satisfied-by
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