Skip to main content
Build Status PyPI-Server Documentation Status Coveralls Project generated with PyScaffold

MacroStat

A Package providing multiple tools for the statistical analysis and treatment of macroeconomic simulation models, with a particular focus on Agent-based and Stock-Flow Consistent Models

The purpose of this project is to provide a statistical toolbox for the analysis of Agent-based Models. The toolbox is developed in python and aims to provide a simple interface for researchers to attach their model, such that simulations can be steered from within the toolbox and the relevant analysis can be run (such as sensitivities, confidence intervals, and simulation studies). Only the analysis itself requires python, while the models can be written in any language.

The code was developed using Python 3.10. Backwards compatibility is not guaranteed

Installation

This project requires Python v3.10 or later.

To install the latest version of the package from PyPI:

pip install macrostat

Or, directly from GitHub:

pip install git+https://github.com/KarlNaumann/MacroStat.git#egg=macrostat

Continuous Integration

MacroStat runs on GitHub Actions across Linux (ubuntu-latest) and Windows (windows-latest) for Python 3.11, 3.12, and 3.13. The full test suite including slow-marked tests runs nightly on master. macOS is not currently covered; it is tracked as a follow-up before the planned JOSS submission.

Development Installation

For development, install the package in editable mode. This project uses uv for dependency management:

uv sync                    # Install all dependencies
uv pip install -e .        # Install package in editable mode

After this, you can run tests with:

uv run pytest

If you’d like to contribute to the package, please read the CONTRIBUTING.md guide.

Making Changes & Contributing

This project uses pre-commit, please make sure to install it before making any changes:

pip install pre-commit
cd MacroStat
pre-commit install

It is a good idea to update the hooks to the latest version:

pre-commit autoupdate

Don’t forget to tell your contributors to also install and use pre-commit.

Contact

Karl Naumann-Woleske - karlnaumann.com

Project Link: [https://github.com/KarlNaumann/MacroStat](https://github.com/KarlNaumann/MacroStat)

Note

This project has been set up using PyScaffold 4.5. For details and usage information on PyScaffold see https://pyscaffold.org/.

Metadata

Release files for MacroStat 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for MacroStat 0.6.0
File Size Uploaded
macrostat-0.6.0.tar.gz 5.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for MacroStat 0.6.0
File Interpreter ABI Platform
macrostat-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.7 MB

Release files / macrostat-0.6.0.tar.gz

Download URL macrostat-0.6.0.tar.gz
Size 5.5 MB
Tags Source
SHA-256 checksum
How to use checksums
34822ee086e5fb1df35ed8cc9d188351c0f0a22a143e9fd32b77ed2de77f4340
BLAKE2b-256 checksum
How to use checksums
b0f81e299f46c1858fe2f66fc20970f2e164166cbfae472ada419dbc89861053
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / macrostat-0.6.0-py3-none-any.whl

Download URL macrostat-0.6.0-py3-none-any.whl
Size 246.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
922da689e39e773892bf7afdbdd6c9cbf45be54b3b5fdc4c27a2500bd86b597a
BLAKE2b-256 checksum
How to use checksums
54992059db40b2fa459722a12c66085939006895c5b84b500090e6648616ff9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.7

2 release files

0.5.6

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page