Melodie: Agent-based Modeling in Python ======================================= **Melodie** is a general framework for developing agent-based models (ABMs) in Python. Melodie and its example repositories are maintained on `ABM4ALL `_, a developing community among agent-based modelers for sharing ideas and resources. The package name **Melodie** comes from an example which poetically explains the core concept of complexity theory: \"`emergence`\". In his bold book *Emergent Evolution*, `C. Lloyd Morgan `_ wrote: \"The emergent step, though it may seem more or less saltatory [a leap], is best regarded as a qualitative change of direction, or critical turning-point, in the course of events.\" Then, Morgan exemplified how *Melody* emerges from chords by quoting *Abt Vogler* of `Robert Browning `_: | \"And I know not if, | save in this, | such gift be allowed to man, | That out of three sounds he frame, | not a fourth sound, | but a star.\" Sitting in Karlsruhe, a lovely city in southern Germany, I take the German translation - \"Melodie\" - as the name of this package. .. image:: image/karlsruhe.png **Suggested reading path** * First, you might want to start with the :ref:`Introduction` section to get a brief idea what agent-based modeling is about, then an overview of the modules in Melodie and how they fit together. * Second, you can continue with the :ref:`Tutorial` section, in which we explain how an example model (`CovidContagion `_) is developed with Melodie step by step. It is a minimum example but shows a clear structure and the most important modules in **Melodie**. * Third, for those who are familiar with `Mesa `_ or `AgentPy `_, we also provide a comparison between **Melodie** and the two packages in the :ref:`Framework Comparison` section. The comparison is done based on the CovidContagion model in the tutorial. * Fourth, since the tutorial only provides a minimum model developed with Melodie, in the :ref:`Model Gallery`, we provide more example models to show how other modules can be used. * Finally, for more details, you may try reading the :ref:`Advanced Topics` and :ref:`API Reference` sections. Now, let's start the journey :) .. toctree:: :hidden: installation introduction tutorial framework_comparison gallery/_index advanced/_index api/_index changelog contribution about