Agent based processs modeling.
Project description
Marmot is an extension of _simpy 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:
- Documentation:
Coming soon!
Installation
pip install marmot-agents
Getting Started
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}]
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
marmot-agents-0.2.5.tar.gz
(46.4 kB
view details)
Built Distribution
File details
Details for the file marmot-agents-0.2.5.tar.gz
.
File metadata
- Download URL: marmot-agents-0.2.5.tar.gz
- Upload date:
- Size: 46.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/45.2.0.post20200209 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0038c28928681b74352397a357f290da00c86a10c9626219b3ae36899faa915 |
|
MD5 | a492444738cb7fa409349cea3771a632 |
|
BLAKE2b-256 | e35a9c4845dbd1b8a98fc29a83624f8cbd8d6c73dfc723a45357049cceaf3549 |
File details
Details for the file marmot_agents-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: marmot_agents-0.2.5-py3-none-any.whl
- Upload date:
- Size: 39.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/45.2.0.post20200209 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7678a830593222436396163fb0788d9d113bf84afb956b8854aad465830c2a6 |
|
MD5 | a7c254678f8811887fababf160044f90 |
|
BLAKE2b-256 | 38fe583072b49c82b91edca02ef99fcc90c0be54df247f285fe7fd28249e4c31 |