Registry / ai-ml / pyperplan

pyperplan

JSON →
library2.1pypypiunverified

A lightweight STRIPS planner implemented in pure Python. No external solver required. Current version 2.1 (2022-01-17) with Python >=3.6 support. Maintenance-only status; last release 2022.

pip install pyperplan
INSTALL
IMPORT
SIG · PYPERPLAN
P
pyperplan
ai-mlpythonv2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

search_plan
from pyperplan import search_plan
from pyperplan import search_plan

Load a PDDL domain and problem file, ground the task, and find a plan using the hmax heuristic.

from pyperplan import search_plan from pyperplan.grounding import ground from pyperplan.heuristics import hmax from pyperplan.pddl import parse_domain, parse_problem domain = parse_domain('domain.pddl') problem = parse_problem('problem.pddl') task = ground(domain, problem) plan, _ = search_plan(task, hmax) print('; '.join(plan))
Debug
Known issues
gotchapyperplan only supports STRIPS (no ADL, no negative preconditions, no conditional effects). Using non-STRIPS PDDL will silently produce incorrect grounding.
fix
Ensure your domain and problem files are STRIPS-only.
affects: all
gotchaThe package is no longer actively maintained. The last release (2.1) is from January 2022. Python versions above 3.10 may have compatibility issues with outdated dependencies.
fix
Consider forking or switching to alternatives like Tarski or Pyperplan fork if updates are needed.
affects: >=2.0
Upgrade
Version history
2.1latest on PyPI · released Jan 17, 2022
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
OpenAI (training)
1
Resources
pyperplan — pip install pyperplan · libregistry