Stefan Scherfke

SimPy 3 Preview

SimPy is a process-based and event-driven simulation framework written in pure Python. It can also be used for multi-agent systems and other eventloop-based applications.

After several months of work and various iterations of SimPy’s new API, we can finally present a preview with the most important features working.

Here is a simple example:

>>> import simpy
>>> def clock(env):
...     while True:
...         print(
...         yield env.timeout(1)
>>> env = simpy.Environment()
>>> env.start(clock(env))
>>> simpy.simulate(env, until=3)

You can find the full announcement at Google+ and on our mailing list.

The code is at Bitbucket, the documentation at Read the Docs.