Skip to main content

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 behavior
  • sirs.py - SIRS epidemic model
  • sugarscape.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

tensnap-0.1.0.tar.gz (51.7 kB view details)

Uploaded Source

Built Distribution

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

tensnap-0.1.0-py3-none-any.whl (55.0 kB view details)

Uploaded Python 3

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

Hashes for tensnap-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c3c1a0727b5ee16483cfad21c88e7422ba7999c44ee5d4a365cd80101e9233a1
MD5 a60304266eddd91cbee8737527c09d7e
BLAKE2b-256 29ad25055fc9c749ff08d265b06112595d6bfb10470b501fac5e1f4630b3c6fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for tensnap-0.1.0.tar.gz:

Publisher: python-publish.yml on billstark001/tensnap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for tensnap-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac7e7a5f8654613d122333c868d695ee1863c71544ddc6a0a529730a81ed4bcf
MD5 78fc7ace3e55aaba3adde89a99b5e0f6
BLAKE2b-256 69b60dcc7c557346a962a1d8b24efea5a541b5cd070918a16249640944913dcb

See more details on using hashes here.

Provenance

The following attestation bundles were made for tensnap-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on billstark001/tensnap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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