Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

abcEconomics the Agent-Based Computational Economy platform that makes modeling easier

abcEconomics is a Python based modeling platform for economic simulations. abcEconomics comes with standard functions to simulations of trade, production and consumption. The modeler can concentrate on implementing the logic and decisions of an agents; abcEconomics takes care of all exchange of goods and production and consumption.

https://zenodo.org/badge/4157636.svg abcEconomics build status on Travis CI abcEconomics build status on Appveyor CI Pypi version readthedocs
https://raw.githubusercontent.com/AB-CE/abce/master/docs/cheesegrater.png

In abcEconomics, goods have the physical properties of goods in reality in the sense that if agent A gives a good to agent B, then - unlike information - agent B receives the good and agent B does not have the good anymore. The ownership and transformations (production or consumption) of goods are automatically handled by the platform.

abcEconomics models are programmed in standard Python, stock functions of agents can be inherited from archetype classes (Firm or Household). The only not-so-standard Python is that agents are executed in parallel by the Simulation class (in start.py).

abcEconomics allows the modeler to program agents as ordinary Python class-objects, but run the simulation on a multi-core/processor computer. It takes no effort or intervention from the modeler to run the simulation on a multi-core system. The speed advantages of using abcEconomics with multi-processes enabled. abcEconomics are typically only observed for 10000 agents and more. Below, it might be slower than pure python implementation. abcEconomics supports pypy3, which is approximately 10 times faster than CPython.

abcEconomics is a scheduler and a set of agent classes. According to the schedule the simulation class calls - each sub-round - agents to execute some actions. Each agent executes these actions using some of the build-in functions, such as trade, production and consumption of abcEconomics. The agents can use the full set of commands of the Python general purpose language.

The audience of abcEconomics are economists that want to model agent-based models of trade and production.

abcEconomics does support an accounting framework for financial simulations. ESL can be downloaded here.

abcEconomics runs on macOS, Windows, and Linux. abcEconomics runs 10x faster on pypy!

Install with:

pip3 install abcEconomics

The documentation is here:

http://abce.readthedocs.io/

An example is here:

Insurance Market

A code example is here:

Jupyter Tutorial

More code examples are here:

https://github.com/AB-CE/examples

Metadata

Release files for abcEconomics 0.9.7b2

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

Source distribution (sdist)

Source distribution for abcEconomics 0.9.7b2
File Size Uploaded Provenance
abcEconomics-0.9.7b2.tar.gz 509.9 kB Without provenance Details

Release files / abcEconomics-0.9.7b2.tar.gz

Download URL abcEconomics-0.9.7b2.tar.gz
Size 509.9 kB
Tags Source
SHA-256 checksum
How to use checksums
adaea6171bceb7493298cda436be1c8f194ff567f441e70a09a3de03c02bdbcb
BLAKE2b-256 checksum
How to use checksums
6bd63215a0bb860a74ef8f67019b0876186f4286314a01076cadd20f47feb733
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

Security for abcEconomics 0.9.7b2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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