Lean Server Package
This package contains the core lean-server application, a FastAPI-based server that provides a REST API for interacting with the Lean prover.
📖 Overview
The server is designed to be run inside the Docker environment provided at the root of this monorepo. It exposes endpoints to perform proof checking and other Lean-related tasks.
The main API endpoint is:
POST /prove/check: Accepts aproofand an optionalconfigto run a proof.
⚙️ Configuration
The server's behavior can be configured via config.yaml. Key settings include:
- Server host and port.
- Lean process configuration.
- Proof checking timeouts.
🚀 Running the Server
This package is intended to be run within the development container.
-
Navigate to the Dev Container: Follow the instructions in the root README to set up the development environment.
-
Install Dependencies: In the container's terminal, install the package in editable mode:
uv pip install -e .
(Note: The root setup installs this automatically).
-
Start the Server: The
pyproject.tomlfile defines a script entry point. You can start the server with the following command:lean-server
By default, it should be available at
http://localhost:8000.
Metadata
Release files for lean-server 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lean_server-0.1.0.tar.gz | 15.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lean_server-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.6 kB
Release files / lean_server-0.1.0.tar.gz
| Download URL | lean_server-0.1.0.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d885df3e0a0bcd85aa095c2b9b8ce0e134bacbf37b65977b1b8bb5e9b646ae59
|
|
BLAKE2b-256 checksum How to use checksums |
1ebf966645e873f6175384736a7eff8a8b1f561a6d0e2e0416532850ea892b74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.5
|
Release files / lean_server-0.1.0-py3-none-any.whl
| Download URL | lean_server-0.1.0-py3-none-any.whl |
|---|---|
| Size | 18.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51c95922821509f05a0923f2da8cf36c43cc1b2c0b1eac8a3a4535145dff6e3c
|
|
BLAKE2b-256 checksum How to use checksums |
1b5758772c3184a3a02a5ea5a02b84d45c72762d45712574640df4765daa88a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.5
|