Skip to main content

Framework for stock-flow consistent agent-based modeling, being developed at the German Aerospace Center (DLR) for and in the scientific context of energy systems analysis, however, it is widely applicable in other scientific fields.

Project description

sfctools - A toolbox for stock-flow consistent, agent-based models

Sfctools is a lightweight and easy-to-use Python framework for agent-based macroeconomic, stock-flow consistent (ABM-SFC) modeling. It concentrates on agents in economics and helps you to construct agents, helps you to manage and document your model parameters, assures stock-flow consistency, and facilitates basic economic data structures (such as the balance sheet).

Installation

In a terminal of your choice, type:

pip install sfctools 

see https://pypi.org/project/sfctools/

Usage

from sfctools import Agent,World
class MyAgent(Agent):
    def __init__(self, a):
        super().__init__(self)
        self. = a 
my_agent = MyAgent()
print(my_agent)
print(World().get_agents_of_type("MyAgent"))

| Author Thomas Baldauf, German Aerospace Center (DLR), Curiestr. 4 70563 Stuttgart | thomas.baldauf@dlr.de | version: 0.5 (Beta) | date: February 2022

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sfctools-0.8.1.tar.gz (158.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sfctools-0.8.1-py3-none-any.whl (178.9 kB view details)

Uploaded Python 3

File details

Details for the file sfctools-0.8.1.tar.gz.

File metadata

  • Download URL: sfctools-0.8.1.tar.gz
  • Upload date:
  • Size: 158.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.9.12 Windows/10

File hashes

Hashes for sfctools-0.8.1.tar.gz
Algorithm Hash digest
SHA256 1539c44059d4d89154c4dc423af0afa420ff1a86186ff8157bd03f16f51c3e16
MD5 9537c2d20ffea50db145b62a4d1427ae
BLAKE2b-256 71e9aff1ad2d0affcb250f58d93c4387e795b8419a334da9055fe4f2a8bc5e1e

See more details on using hashes here.

File details

Details for the file sfctools-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: sfctools-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 178.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.9.12 Windows/10

File hashes

Hashes for sfctools-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de600c59462e470c138ec141e96617077fc524b29bfe799a126b71eccaf5cbda
MD5 8b8e8c7194d023abe7d3fd68dc384cf5
BLAKE2b-256 5be31aebf5fd93b884248c313e2b745a4f782417a085dfe12127f158f0511ddf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page