Skip to main content

dungeoncoder

The Python API for Dungeon Coder, a VS Code extension in which a Python script steers a hero through a pixel-art dungeon.

from dungeoncoder import Game

game = Game("playground.json")
hero = game.get_hero()
while not hero.is_at_goal():
    if hero.is_collision_in_front():
        hero.turn_left()
    else:
        hero.move()
  • With the extension: start the game in VS Code (Dungeon Coder: Enter the dungeon); the script talks to it over a local REST API.
  • Without VS Code: dungeoncoder.use_simulator() (or DUNGEONCODER_SIM=1) runs the same script in a pure-Python simulator of the game's rules: no picture, no waiting. dungeoncoder.testing.spiel(map_text) gives (game, hero) for pytest.
  • Levels from text maps: Game("karte.txt").
  • Setup check: python -m dungeoncoder says which Python and which copy of the package run, whether the game answers and whether its version fits.

The package has the same version as the extension. Install it with pip install dungeoncoder.

Metadata

Release files for dungeoncoder 1.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 dungeoncoder 1.1.0
File Size Uploaded Provenance
dungeoncoder-1.1.0.tar.gz 86.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for dungeoncoder 1.1.0
File Interpreter ABI Platform
dungeoncoder-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 219.6 kB

Release files / dungeoncoder-1.1.0.tar.gz

Download URL dungeoncoder-1.1.0.tar.gz
Size 86.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4c85b89eba960f72038c385bab0c6219410eb489d529309dcbcd8caeaa605adb
BLAKE2b-256 checksum
How to use checksums
bacce61b2920d941e4365cce0a76fe1910da0927fdfc6f39fc7140ccf0b476d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0rc2

Release files / dungeoncoder-1.1.0-py3-none-any.whl

Download URL dungeoncoder-1.1.0-py3-none-any.whl
Size 133.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58ba760c90f13bf0489624cc41d1dfc14eceb24b9f2d18c454c6efe9855fce67
BLAKE2b-256 checksum
How to use checksums
bc925f0efbffa172339bcc3a47b9a0876379230997c7519b811ca27989257d22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0rc2

Security for dungeoncoder 1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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