simpy
Installation
SKILL.md
SimPy - Discrete Event Simulation
SimPy allows you to model real-world processes as Python generators. Components in SimPy (like customers, cars, or data packets) are "processes" that interact with each other and with limited "resources" (like servers, parking spots, or bandwidth).
When to Use
- Modeling queuing systems (Bank tellers, call centers, hospital emergency rooms)
- Simulating supply chains and logistics (Warehouses, transport networks)
- Analyzing manufacturing processes (Assembly lines, machine maintenance)
- Network simulation (Packet routing, server load balancing)
- Project management (Task dependencies, resource allocation)
- Any system where "events" occur at specific points in time rather than continuously
Reference Documentation
Official docs: https://simpy.readthedocs.io/
GitHub: https://github.com/simpy/simpy
Search patterns: simpy.Environment, simpy.Resource, env.process, yield env.timeout