Agent-based model visualization toolkit - Python bindings
Project description
Tensnap Python Bindings
Python bindings for Tensnap - an agent-based model visualization toolkit.
Installation
pip install tensnap
Quick Start
from tensnap import Scenario
import asyncio
# Create a scenario
scenario = Scenario(name="my-simulation", port=8765)
# Define your model logic
# See examples/ directory for complete examples
# Run the server
asyncio.run(scenario.run())
Examples
Check the examples/ directory for complete simulations:
flock.py- Flocking behaviorsirs.py- SIRS epidemic modelsugarscape.py- Sugarscape economic model
Documentation
Full documentation: https://github.com/billstark001/tensnap
License
See LICENSE file in the repository root.
Project details
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 tensnap-0.1.0.tar.gz.
File metadata
- Download URL: tensnap-0.1.0.tar.gz
- Upload date:
- Size: 51.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3c1a0727b5ee16483cfad21c88e7422ba7999c44ee5d4a365cd80101e9233a1
|
|
| MD5 |
a60304266eddd91cbee8737527c09d7e
|
|
| BLAKE2b-256 |
29ad25055fc9c749ff08d265b06112595d6bfb10470b501fac5e1f4630b3c6fa
|
Provenance
The following attestation bundles were made for tensnap-0.1.0.tar.gz:
Publisher:
python-publish.yml on billstark001/tensnap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tensnap-0.1.0.tar.gz -
Subject digest:
c3c1a0727b5ee16483cfad21c88e7422ba7999c44ee5d4a365cd80101e9233a1 - Sigstore transparency entry: 699874407
- Sigstore integration time:
-
Permalink:
billstark001/tensnap@c5b818072bf64a16863004d17483d683f6413da1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/billstark001
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@c5b818072bf64a16863004d17483d683f6413da1 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file tensnap-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tensnap-0.1.0-py3-none-any.whl
- Upload date:
- Size: 55.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac7e7a5f8654613d122333c868d695ee1863c71544ddc6a0a529730a81ed4bcf
|
|
| MD5 |
78fc7ace3e55aaba3adde89a99b5e0f6
|
|
| BLAKE2b-256 |
69b60dcc7c557346a962a1d8b24efea5a541b5cd070918a16249640944913dcb
|
Provenance
The following attestation bundles were made for tensnap-0.1.0-py3-none-any.whl:
Publisher:
python-publish.yml on billstark001/tensnap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tensnap-0.1.0-py3-none-any.whl -
Subject digest:
ac7e7a5f8654613d122333c868d695ee1863c71544ddc6a0a529730a81ed4bcf - Sigstore transparency entry: 699874413
- Sigstore integration time:
-
Permalink:
billstark001/tensnap@c5b818072bf64a16863004d17483d683f6413da1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/billstark001
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@c5b818072bf64a16863004d17483d683f6413da1 -
Trigger Event:
workflow_dispatch
-
Statement type: