{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/4"}],"enrichment":{"capability":"Interact with a Lean 4 language server running in a subprocess via Python, querying and modifying Lean files through the Language Server Protocol.","skillfed_tags":["lean-theorem-prover","language-server-protocol","formal-verification"],"use_cases":["Batch-process multiple Lean files to extract diagnostics, symbols, or type information for analysis or documentation generation.","Automate theorem proving workflows by programmatically querying goals, hover info, and code actions within a Lean project.","Build tooling that inspects module dependencies and reverse-dependency graphs to understand Lean library structure.","Integrate Lean verification into Python-based research or testing pipelines that need to check Lean code correctness.","Develop IDE-like features or editor plugins that delegate Lean interactions to a subprocess via this client."],"what_it_does":"leanclient is a thin Python wrapper around the Lean 4 language server, enabling programmatic interaction with Lean files and projects. It exposes LSP operations like querying diagnostics, retrieving document symbols (theorems, definitions), getting hover information, updating file content in memory, and exploring module hierarchies through dependency graphs. The package is designed for batch processing and automation tasks where you need to interact with Lean code from Python without building a full IDE.\n\nThe package depends on orjson for JSON serialization, psutil for system monitoring, and tqdm for progress indication. It requires Python 3.10 or later and expects a Lean project with a lakefile.toml to be present. Most operations are implemented, though call hierarchy is noted as unreliable and some workspace-level operations remain unimplemented.","worth_installing":"Yes, if you need programmatic access to Lean 4 from Python and have a working Lean project environment. The package is permissively licensed, has low install friction, and is actively maintained. However, it is very new (first release January 2025), so expect potential API changes and incomplete feature coverage; the Windows support caveat and experimental status of some features warrant caution in production use."},"id":"leanclient","links":{"html":"https://skillfed.io/packages/leanclient","md":"https://skillfed.io/packages/leanclient.md","pypi":"https://pypi.org/project/leanclient/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-28","license_spdx":null,"license_treatment":"permissive","name":"leanclient","python_support":"supports_current","summary":"Interact with the Lean theorem prover language server"},"popularity":{"monthly_downloads":2392189,"position":3088,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.13.0"}
