Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

marmot-agents

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marmot-agents

Agent based processs modeling.

  • 0.2.5
  • PyPI
  • Socket score

Maintainers
3

Marmot

Marmot is an extension of _simpy <https://_simpy.readthedocs.io/en/latest/>_ that makes it easier to build agent-based process models. Marmot allows a user to model the actions of discrete agents acting within an environment.

:Version: 0.2.5 :Authors: Jake Nunemaker <https://www.linkedin.com/in/jake-nunemaker/>_ :Documentation: Coming soon!

Installation

pip install marmot-agents

Getting Started

.. code-block:: python

from marmot import Environment, Agent

An agent must be created and registered to an environment

env = Environment() agent = Agent("Test Agent") env.register(agent)

The registered agent can now be scheduled to perform tasks

agent.task("Run", 10) # The agent is scheduled to run for 10 units of time

The simulation must be ran

env.run() print(env.now)

10

Logs of all tasks are kept

env.logs

[{"agent": "Test Agent", "action": "Run", "duration": 10, "time": 10}]

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc