pip install python-demiurge
python
from demiurge import Demiurge
world = Demiurge()
world.add_character("hero", {"health": 100, "power": 10})
world.add_character("enemy", {"health": 50, "power": 5})
world.add_scene("forest", {"type": "dangerous"})
world.add_scene("castle", {"type": "safe"})
world.add_event("hero_move", {"from": "forest", "to": "castle", "distance": 10})
world.add_event("enemy_attack", {"target": "hero", "damage": 20})
world.get_character_by_name("hero").move("forest", "castle")
world.get_character_by_name("enemy").attack("hero")
print(world.get_character_by_name("hero").get_status())
print(world.get_scene_by_name("forest").get_status())