Skip to main content

Pyperplan is a lightweight STRIPS planner written in Python.

Please note that Pyperplan deliberately prefers clean code over fast code. It is designed to be used as a teaching or prototyping tool. If you use it for paper experiments, please state clearly that Pyperplan does not offer state-of-the-art performance.

It was developed during the planning practical course at Albert-Ludwigs-Universität Freiburg during the winter term 2010/2011 and is published under the terms of the GNU General Public License 3 (GPLv3).

Pyperplan supports the following PDDL fragment: STRIPS without action costs.

Requirements

Pyperplan requires Python >= 3.6.

Installation

From the Python package index (PyPI):

pip install pyperplan

From inside a repository clone:

pip install --editable .

This makes the pyperplan command available globally or in your virtual environment (recommended).

Usage

The pyperplan executable accepts two arguments: a PDDL domain file and a PDDL problem file. Example:

pyperplan benchmarks/tpp/domain.pddl benchmarks/tpp/task01.pddl

The domain file can be omitted, in which case the planner will attempt to guess its name based on the problem file. If a plan is found, it is stored alongside the problem file with a .soln extension.

By default, the planner performs a blind breadth-first search, which does not scale very well. Heuristic search algorithms are available. For example, to use greedy-best-first search with the FF heuristic, run

pyperplan -H hff -s gbf DOMAIN PROBLEM

For a list of available search algorithms and heuristics, run

pyperplan --help

For more information on using the planner and how to extend it to do more fancy stuff, see the documentation.

FAQs

PDDL types

Pyperplan follows the semantics that all types other than the universal supertype object (which is mentioned as such in the PDDL 1.2 paper) need to be explicitly introduced.

Contact

Pyperplan is hosted on GitHub: https://github.com/aibasel/pyperplan

The original authors of Pyperplan are, in alphabetical order:

  • Yusra Alkhazraji
  • Matthias Frorath
  • Markus Grützner
  • Thomas Liebetraut
  • Manuela Ortlieb
  • Jendrik Seipp
  • Tobias Springenberg
  • Philip Stahl
  • Jan Wülfing

The instructors of the course in which Pyperplan was created were Malte Helmert and Robert Mattmüller.

If you want to get in touch with us, please contact Robert Mattmüller or Jendrik Seipp. Their email addresses can easily be found on the web.

Citing Pyperplan

Please cite Pyperplan using

@Misc{alkhazraji-et-al-zenodo2020,
  author =       "Yusra Alkhazraji and Matthias Frorath and Markus Gr{\"u}tzner
                  and Malte Helmert and Thomas Liebetraut and Robert Mattm{\"u}ller
                  and Manuela Ortlieb and Jendrik Seipp and Tobias Springenberg and
                  Philip Stahl and Jan W{\"u}lfing",
  title =        "Pyperplan",
  publisher =    "Zenodo",
  year =         "2020",
  doi =          "10.5281/zenodo.3700819",
  url =          "https://doi.org/10.5281/zenodo.3700819",
  howpublished = "\url{https://doi.org/10.5281/zenodo.3700819}"
}

Metadata

Release files for pyperplan 2.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 pyperplan 2.1
File Size Uploaded
pyperplan-2.1.tar.gz 77.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyperplan 2.1
File Interpreter ABI Platform
pyperplan-2.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 146.5 kB

Release files / pyperplan-2.1.tar.gz

Download URL pyperplan-2.1.tar.gz
Size 77.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3754d7008d279392a8f0f8aea6da3cd0bdc03613297ddb06e33e0a983c2fbf9e
BLAKE2b-256 checksum
How to use checksums
fcb43b50ed0b52f7ea016964b89fb3fa6614addd4e25872329541f7a9a811331
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/3.7.3 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.10

Release files / pyperplan-2.1-py2.py3-none-any.whl

Download URL pyperplan-2.1-py2.py3-none-any.whl
Size 69.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
72e51921e8a17b9c583f96f47e78d78019b8177d7f05e31cddb86928dfd67b99
BLAKE2b-256 checksum
How to use checksums
aca9d586a6b475ab4eb0c6f6eeb2c678eaa07f6b96beaf0364fdaee1f4728a2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/3.7.3 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

2.1 This release

2 release files

2.0

2 release files

1.3

2 release files

1.2

2 release files

1.1

1 release file

1.0

2 release files

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