MCPcopy Index your code
hub / github.com/ABM4ALL/Melodie

github.com/ABM4ALL/Melodie @v1.1.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.1.1 ↗ · + Follow
1,710 symbols 5,771 edges 247 files 521 documented · 30%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Melodie: Agent-based Modeling in Python

Tests DOI

Melodie is a framework for developing agent-based models (ABMs) in Python. The package and its examples are maintained on ABM4ALL. For introduction and tutorial of the package, please visit our documentation page.

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.

Karlsruhe

Suggested citation:

Yu, S.; Hou, Z.; (2023). Melodie: Agent-based Modeling in Python. Journal of Open Source Software, 8(83), 5100, https://doi.org/10.21105/joss.05100

Core symbols most depended-on inside this repo

append
called by 119
MelodieInfra/table/table_objects.py
keys
called by 68
MelodieInfra/jsonobject/base.py
items
called by 60
MelodieInfra/jsonobject/base.py
extend
called by 56
MelodieInfra/jsonobject/containers.py
add_agent_property
called by 50
Melodie/trainer.py
replace
called by 47
MelodieInfra/jsonobject/base.py
m
called by 41
docs/html/_static/jquery.js
S
called by 39
docs/html/_static/jquery.js

Shape

Method 1,109
Class 331
Function 267
Route 3

Languages

Python94%
TypeScript6%

Modules by API surface

docs/html/_static/jquery.js81 symbols
Melodie/visualizer/vis_charts.py54 symbols
MelodieInfra/lowcode/params.py52 symbols
MelodieInfra/core/grid.py50 symbols
Melodie/trainer.py50 symbols
MelodieInfra/exceptions/exceptions.py49 symbols
MelodieInfra/jsonobject/containers.py42 symbols
MelodieInfra/jsonobject/base_properties.py40 symbols
Melodie/visualizer/visualizer.py40 symbols
MelodieInfra/jsonobject/base.py39 symbols
MelodieInfra/core/agent_list.py35 symbols
Melodie/calibrator.py35 symbols

Datastores touched

(mysql)Database · 1 repos

For agents

$ claude mcp add Melodie \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact