Skip to main content

pddl-utils

Library of miscellaneous utilies to work with PDDL (both in Python and on the command line).

Installation

pip install pddl-utils

Usage

Python

import pddlutils as pu

# Bind a domain and problem together, from files or parsed `pddl` objects.
task = pu.Task('domain.pddl', 'problem.pddl')

# A state is the set of ground atoms that are true.
state = task.initial_state

# List ground actions and atoms, sorted by name and then object names.
actions = task.applicable_actions(state)
atoms = task.ground_atoms()

# Ground an action by name. Wrong types, arity or names raise PDDLLogicError.
move = task.ground('move', 'person1', 'loc1', 'loc2')

# Check applicability and progress the state.
if task.is_applicable(state, move):
    state = task.progress(state, move)

task.is_goal(state)

# Replay a `pddl` Plan or a list of ground actions. Invalid steps are reported
# in the result instead of being raised.
result = task.replay([move])
result.states          # States visited, starting with the initial state
result.succeeded       # Whether every step applied
result.failed_step     # Index of the first failing step, or None
result.failure_reason  # Why that step failed, or None
result.goal_reached    # Whether the plan succeeded and reached the goal

Grounding also works without a Task, given the domain for its type hierarchy:

domain, problem = pu.load('domain.pddl', 'problem.pddl')

a = domain.action['move']
p1 = domain.constant['person1']
l1 = problem.object['loc1']
l2 = problem.object['loc2']

ag = pu.ground(a, p1, l1, l2, domain=domain)

Supported PDDL

States and actions support :strips, :typing, :negative-preconditions and :equality. If an add and a delete effect name the same atom, the atom ends up true. Task raises NotImplementedError for a domain outside this fragment.

Planned Usage

CLI

Progress the initial state through a plan, and create a new problem file with the final state reached.

$ planutils progress --domain domain.pddl --problem problem.pddl --plan plan.ipc --output new-problem.pddl

Metadata

Release files for pddl-utils 0.1.0

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

Source distribution (sdist)

Source distribution for pddl-utils 0.1.0
File Size Uploaded Provenance Actions
pddl_utils-0.1.0.tar.gz 12.4 kB With provenance Details for pddl_utils-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pddl-utils 0.1.0
File Interpreter ABI Platform Actions
pddl_utils-0.1.0-py3-none-any.whl Python 3 none any Details for pddl_utils-0.1.0-py3-none-any.whl

Total release size: 22.2 kB

Release files / pddl_utils-0.1.0.tar.gz

Download URL pddl_utils-0.1.0.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e420314cda42725412370abcc5ca6879d276c9f20871f73484be668db5f85211
BLAKE2b-256 checksum
How to use checksums
473f0aec0b58c0a087c077261dcb10f2eb80c5fcc1f79e42ab6e8edf1b2e7b4e
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 18, 2026.

Transparency log

Release files / pddl_utils-0.1.0-py3-none-any.whl

Download URL pddl_utils-0.1.0-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5301747b05bb92ff05eeb0c856f5c11333be5e48ccaa6c3493cdc6aaeca3c124
BLAKE2b-256 checksum
How to use checksums
41991750342aeab0e40c64b56cb2a06a29563ce131e39a0f933c7643617dab86
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 18, 2026.

Transparency log

Security for pddl-utils 0.1.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pddl_utils-0.1.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 18, 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.

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