Skip to main content

Kimina client

Client SDK to interact with Kimina Lean server.

Install:

pip install kimina-ast-client

Example use:

from kimina_client import KiminaClient

# Specify LEAN_SERVER_API_KEY in your .env or pass `api_key`.
# Default `api_url` is https://projectnumina.ai
client = KiminaClient()

# If running locally use:
# client = KiminaClient(api_url="http://localhost:80")

client.check("#check Nat")

AST endpoints

from kimina_client import KiminaClient

client = KiminaClient()

# Get AST for existing modules
mod_res = client.ast(["Mathlib", "Lean.Elab.Frontend"])  # POST /api/ast
print(mod_res.results[0].module, mod_res.results[0].error)

# Get AST from raw code
code = """import Mathlib
#check Nat
"""
code_res = client.ast_code(code, module="User.Code")  # POST /api/ast_code
print(code_res.results[0].module, code_res.results[0].ast is not None)

Backward client

from kimina_client import Lean4Client

client = Lean4Client()

client.verify("#check Nat")

Metadata

Release files for kimina-ast-client 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kimina-ast-client 0.2.2
File Size Uploaded Provenance
kimina_ast_client-0.2.2.tar.gz 25.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for kimina-ast-client 0.2.2
File Interpreter ABI Platform
kimina_ast_client-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 55.7 kB

Release files / kimina_ast_client-0.2.2.tar.gz

Download URL kimina_ast_client-0.2.2.tar.gz
Size 25.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1bf6843d483300866f36bb8acdf0b012ba8184459d49e568933e8fbe5fe165f4
BLAKE2b-256 checksum
How to use checksums
6479f1c3bbad02672b6d3168f77549fe738fd5ae1c238f675e20599fdca9ea04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / kimina_ast_client-0.2.2-py3-none-any.whl

Download URL kimina_ast_client-0.2.2-py3-none-any.whl
Size 29.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d50b6be1e4ab60bcb17eab58dc0dc42ea334ae39819df7420f6ebd7e0d086d48
BLAKE2b-256 checksum
How to use checksums
54ffa6c89f07d04e36a4682edcd02418a74fc6b5ba8c34b3e506688e172c44d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for kimina-ast-client 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page