skillfed

salabim

salabim - discrete event simulation in Python

salabim v26.0.8 101.8K downloads/30d#12,913 on PyPI403
Permissive license Active released

What it is and what it does

Salabim is a discrete event simulation framework designed for modeling systems found in logistics, manufacturing, healthcare, and network analysis. It provides an object-oriented API with components, queues, resources, stores, and state tracking, allowing you to describe processes intuitively without yield statements. The library includes built-in data collection via monitors, 2D and 3D animation capabilities, tracing for debugging, and statistical sampling tools.

The package is cross-platform (Windows, macOS, Linux, iOS/iPadOS) and has minimal dependencies when animation is disabled. It follows a well-established process description method and is actively maintained with comprehensive documentation. The core developer provides direct support and consulting services.

Use it for:

  • Model production facility workflows, material handling, and resource allocation to optimize throughput and identify bottlenecks.
  • Simulate airport operations, hospital patient flows, or warehouse logistics to evaluate system designs before implementation.
  • Analyze computer network behavior and packet routing under various load conditions.
  • Create animated visualizations of simulations for stakeholder presentations or educational demonstrations.
  • Collect and analyze statistical data from repeated simulation runs to support decision-making.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Salabim is a Python library for discrete event simulation (DES) that models systems with components, queues, resources, and stores, and provides 2D/3D animation and data collection without requiring yield statements for process control.

Yes. Salabim is a mature, actively maintained library with zero known vulnerabilities, low install friction, and permissive licensing. It is well-suited for anyone building discrete event simulations in Python, particularly those who prefer intuitive process description over yield-based coroutines. The built-in animation and data collection features add significant value for modeling and analysis workflows.

Install

salabim on PyPI

pip

pip install salabim

uv

uv add salabim

poetry

poetry add salabim

Installing salabim

Before you install

Low install friction with no runtime dependencies; wheel-only distribution. Package is actively maintained with recent releases and a stable production status.

License in practice

MIT license is permissive, allowing commercial and private use with minimal restrictions; you may use, modify, and distribute salabim freely provided you include the license notice.

Quickstart

pip install salabim

import salabim as sim

env = sim.Environment()
env.run()

Requires Python 3.7 or later; animation features may require additional system libraries depending on your platform.

Verify before relying

  • Whether animation features work out-of-the-box on all platforms or require separate graphics library installation.
  • Performance characteristics and scalability limits for large-scale simulations.
  • Whether the package is suitable for real-time simulation or primarily for offline modeling.

Package facts

License not declared (permissive)
Python support supports the current Python release (>=3.7)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance actively maintained — 51 days since the last release
Last repo commit
First released
Downloads 101,819/month — #12,913 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: salabim-26.0.8-py3-none-any.whl

Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3 :: Only

Tags

discrete event simulation pythondes library animationprocess simulation queuingevent-driven modelingproduction facility simulationlogistics simulation python
simulationdiscrete-eventmodeling

More Scientific/Engineering packages