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

This version

0.8

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.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-py3-none-any.whl (178.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sfctools-0.8.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.tar.gz
Algorithm Hash digest
SHA256 5de998e255ea96dd6bbfaaf82c7ce6738a45225e6cd07fb742502e22b14cf557
MD5 c48a216fa12cbe76b27ee92a2efb4272
BLAKE2b-256 acc5e84dbfd0de15cb400b9962d5930c51b51f100715e67480be292766de8065

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sfctools-0.8-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-py3-none-any.whl
Algorithm Hash digest
SHA256 2a96b3639a492df1376a75f1f9482ed3f531046f4c803049acbd302738ddcc11
MD5 34a3d57ada0732a6342dd53d329029b3
BLAKE2b-256 46b14f7b820158f4ca2b4b30fefece94ec58675bd2ac692ff3043bccfa011c12

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