Skip to main content

An extension of SimPy for working with distinct agents.

Project description

simpy-agents extends SimPy by adding the ‘agent’ field to events, allowing the user to track which agent is associated with each event.

# Create an environment and schedule a Timeout
env = Environment()
env.timeout(10, agent='Test Agent')

# The 'agent' field is passed to the event and stored in the queue
>>> [(10, 1, 0, <Timeout(10) object at 0x10f913bd0>, 'Test Agent')]

# The Environment class now has a 'scheduled_agents' property
>>> ['Test Agent']


simpy-agents is installable via pip: pip install simpy-agents.

All new functionality is optional and the original SimPy API is maintained. It is recommended to remove any other installations SimPy from the environment to ensure the intended version is imported.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for simpy-agents, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size simpy_agents-1.0.0-py3-none-any.whl (25.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size simpy-agents-1.0.0.tar.gz (36.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page