SimPy 3 Preview
Posted on
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(env.now)
... yield env.timeout(1)
...
>>> env = simpy.Environment()
>>> env.start(clock(env))
Process(clock)
>>> simpy.simulate(env, until=3)
0
1
2
You can find the full announcement at Google+ and on our mailing list.
The code is at Bitbucket, the documentation at Read the Docs.