Skip to main content

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): status is SOLVED, UNSOLVABLE (proved), TIMEOUT, UNSUPPORTED, INVALID_INPUT (see diagnostics) or INTERNAL_ERROR. Every plan is verified, independently of the search, before it is returned (verify). With decomposition it 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. With anytime=True it goes on after the first plan looking for better ones, calling on_plan(plan, steps) with each, until none is left or the time runs out; optimal says whether the last one was proved the best. Better is cheaper by the :metric of the problem when it adds up action costs, shorter when there is none. cost is the value of the metric for the plan (None without 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; with decomposition, a valid plan also as steps. metric is 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.1

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

Source distribution (sdist)

Source distribution for klimax-planner 1.0.1
File Size Uploaded Provenance Actions
klimax_planner-1.0.1.tar.gz 1.5 MB With provenance Details for klimax_planner-1.0.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for klimax-planner 1.0.1
File Actions
klimax_planner-1.0.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for klimax_planner-1.0.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
klimax_planner-1.0.1-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.12 abi3 Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 Details for klimax_planner-1.0.1-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
klimax_planner-1.0.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for klimax_planner-1.0.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
klimax_planner-1.0.1-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 Details for klimax_planner-1.0.1-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
klimax_planner-1.0.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for klimax_planner-1.0.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
klimax_planner-1.0.1-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.26+ ARM64, Linux glibc 2.28+ ARM64 Details for klimax_planner-1.0.1-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Total release size: 12.9 MB

Release files / klimax_planner-1.0.1.tar.gz

Download URL klimax_planner-1.0.1.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
43abeee084ae129e3a123168287e0b85a05a6fa256123dccefb1b3085f7c8428
BLAKE2b-256 checksum
How to use checksums
c0971618fdfcfd262dd286adc42ce36bca83b1bb143094d86e9beddf553b790f
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 log

Release files / klimax_planner-1.0.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL klimax_planner-1.0.1-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
63bb3bd4e31528a1ad3087256d8a60aad52f0bef639a2e7d756e7966893e783b
BLAKE2b-256 checksum
How to use checksums
aa17266f210f22c244df3c5fc0b730f95559e6c6f4114b60a83fbe0838c864a7
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 log

Release files / klimax_planner-1.0.1-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL klimax_planner-1.0.1-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
ac2d5afdc56b5001ee9fe7e7fe3fa36fd992215854af1f5eae26f77eb0e6c5f9
BLAKE2b-256 checksum
How to use checksums
fdd56f60a7f7e6a91cb7df1cbe9e9c5d33bfecf383151711ddba4dc98d9fa698
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 log

Release files / klimax_planner-1.0.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL klimax_planner-1.0.1-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
223eebd8b5ae4cc8c18c30e8151af4da63fd1de626ce4eef818447aee3ddc489
BLAKE2b-256 checksum
How to use checksums
b54f3a1a67d54c0089aed5725acbbccb81ab8dd80b4eb3929f40935ce45b5821
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 log

Release files / klimax_planner-1.0.1-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL klimax_planner-1.0.1-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
35bc42119ca3642d531bd03f2def54b901623d60cb7a1c41a34da666b0048895
BLAKE2b-256 checksum
How to use checksums
f82acbb01c9b20671ceccdcc657b033b294522488a5661a9094dcb1f4fd2fa40
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 log

Release files / klimax_planner-1.0.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL klimax_planner-1.0.1-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
673cd5c707d2a47bbfd8265bc96c4e366662ec8ed072af763ee597c6ad686aee
BLAKE2b-256 checksum
How to use checksums
d90a0927f1a252a6fc482dbef24674aa57b6c0c1b8a1c0aadcea955240fa8d6a
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 log

Release files / klimax_planner-1.0.1-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL klimax_planner-1.0.1-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
21dbe783f069b8d8250d2666198b57bc215b3f082a6c25a9097842d13a80f2ec
BLAKE2b-256 checksum
How to use checksums
fb7d25e50d04c400f2fba5ba9c8e1cde4e14e0260aeac2769b6edb14662cabef
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 log

Security for klimax-planner 1.0.1

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.

Select from 7 files

Attestation for klimax_planner-1.0.1.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 log

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

1.0.1 This release

7 release files Full 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