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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5de998e255ea96dd6bbfaaf82c7ce6738a45225e6cd07fb742502e22b14cf557
|
|
| MD5 |
c48a216fa12cbe76b27ee92a2efb4272
|
|
| BLAKE2b-256 |
acc5e84dbfd0de15cb400b9962d5930c51b51f100715e67480be292766de8065
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a96b3639a492df1376a75f1f9482ed3f531046f4c803049acbd302738ddcc11
|
|
| MD5 |
34a3d57ada0732a6342dd53d329029b3
|
|
| BLAKE2b-256 |
46b14f7b820158f4ca2b4b30fefece94ec58675bd2ac692ff3043bccfa011c12
|