Is there any opensource 2d open-world simulation with python API? For my pet project I’m looking for a grid-like world simulation with some kind of resources that requires from agent incrementally intelligent behaviour to survive.

Something like this steam game, but with API.  I’ve seen minecraft fork, but it’s too complex for my task. There is pycolab, i can build some world on this engine, but I’d prefer ready-to-use simulations.

Is there any option? I'll appreciate any suggestion.
You could try Mesa.

It has various examples that are commonly-used in agent-based modelling, like Epstein's model, a wolf/sheep predator/prey model, and many more.

There is also an introductory tutorial.