Klimax in Python
Klimax is an HTN planner for HDDL. This module gives its library to Python: planning, checking a domain and a problem, and verifying plans.
import klimax
domain = open("domain.hddl").read()
problem = open("problem.hddl").read()
result = klimax.solve(domain, problem, timeout=30)
if result.status == klimax.Status.SOLVED:
print(result.plan) # the format of the IPC HTN tracks
for step in result.steps_of_plan: # each action; each task with its method and subtasks
print(step.id, step.task, step.args, step.method, step.subtasks)
solve(domain, problem, timeout=0, decomposition=True, anytime=False, on_plan=None, verify=True):statusisSOLVED,UNSOLVABLE(proved),TIMEOUT,UNSUPPORTED,INVALID_INPUT(seediagnostics) orINTERNAL_ERROR. Every plan is verified, independently of the search, before it is returned (verify). Withdecompositionit is also given as steps: of each task, its method, the values of the method's parameters and which step is each of its subtasks. Withanytime=Trueit goes on after the first plan looking for better ones, callingon_plan(plan, steps)with each, until none is left or the time runs out;optimalsays whether the last one was proved the best. Better is cheaper by the:metricof the problem when it adds up action costs, shorter when there is none.costis the value of the metric for the plan (Nonewithout one).check(domain, problem): every error found, with file, line and column.verify(domain, problem, plan, decomposition=False): whether a plan in the IPC format solves the problem, and why not; withdecomposition, a valid plan also as steps.metricis the value of the problem's metric at the end of a valid plan.
With durative actions or timed initial literals the plan has times: makespan is when it ends,
each step of steps_of_plan has start and end (a task, from the first of its actions to
the last), and in plan each action is written id time: (action args) [duration].
Hierarchical problems with total or partial order, numeric fluents, action costs and time
(see the roadmap for what of time is not planned with yet). To build from
source, Kairos must be installed with -DKAIROS_INSTALL_CORE=ON:
cmake -S . -B build -DKLIMAX_BUILD_PYTHON=ON -DCMAKE_PREFIX_PATH=<kairos prefix>
cmake --build build
PYTHONPATH=build/python python -c "import klimax; print(klimax.__version__)"
Metadata
Release files for klimax-planner 1.0.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 | Provenance | Actions |
|---|---|---|---|---|
| klimax_planner-1.0.0.tar.gz | 1.5 MB | With provenance | Details for klimax_planner-1.0.0.tar.gz |
Built distributions (wheels)
Total release size: 12.9 MB
Release files / klimax_planner-1.0.0.tar.gz
| Download URL | klimax_planner-1.0.0.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d48beed76e948ba2ee553651b5632f87155b7cd856bd61b64ad9973e2ffb4f78
|
|
BLAKE2b-256 checksum How to use checksums |
dfc8634eef0346182801f81f3a2de4fabc94f723a69d9e3a5d6b6be32daedd4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logRelease files / klimax_planner-1.0.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | klimax_planner-1.0.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
69088b3e14648b626c9e524dffe4333f0895fe5fd83b37596afb0b641d577a48
|
|
BLAKE2b-256 checksum How to use checksums |
29e0b59a1ff02d8b0df207e471f69c32ac04e9810cecf76eec3ed0f71a54115a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logRelease files / klimax_planner-1.0.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | klimax_planner-1.0.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.12 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
4b30b8d735ca591a5ae659648e67e5260cb8081798ae4b5693829b0017206ff3
|
|
BLAKE2b-256 checksum How to use checksums |
337b902fb94cb62400d43955920a2208659e46f21a657e73ef8d12fc3b059200
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logRelease files / klimax_planner-1.0.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | klimax_planner-1.0.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
c4b1b5a8ee9c8f330e0f4d8a8a54def929f97e29b031fcea1c3bb6d5b0e97eab
|
|
BLAKE2b-256 checksum How to use checksums |
56c6ecf67f9e2ccaf4722b71282108ea62a99dc873701632ba2c071e0a74a09f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logRelease files / klimax_planner-1.0.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | klimax_planner-1.0.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.11 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
f8e39f995e38c88439617f0e6135427a4bebf0127b9a25c372347098a4167c30
|
|
BLAKE2b-256 checksum How to use checksums |
1240933b00efe9ecb21149dda35486847ba24b3c37fdd087f8612f32938bbaf9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logRelease files / klimax_planner-1.0.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | klimax_planner-1.0.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
44a5586269f4d218cfa5007f1538d0c09ec03519b06d603e7b1c88c1ddc6a816
|
|
BLAKE2b-256 checksum How to use checksums |
17a40089f62f163668bd33f45e1eb2ffb2db25562c4bbf1f5eddc7ffb0723936
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logRelease files / klimax_planner-1.0.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | klimax_planner-1.0.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.10 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
b84bd100d4c68f3040b39d837c90f9226dd8cadfd2f644ad78f7f052e0540c82
|
|
BLAKE2b-256 checksum How to use checksums |
93d13193310ff8c812d2398ca2d4418258a1451cc3f2157f20ef70d29af7de30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logSecurity for klimax-planner 1.0.0
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.
Full provenance
All 7 files in this release have been uploaded with provenance metadata.
Attestation for klimax_planner-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logA 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.