Agents Assembly Translator
Table of Contents
About
A target agnostic translator for Agents Assembly. The translator can be tested live on Agents Assembly website. It is a part of the Agents Assembly ecosystem. Other applications are:
- Local Interface - GUI for simulation definition, management, and analysis.
- Simulation Run Environment - environment for running scalable agent-based simulations.
- Communication Server - cluster of servers used for XMPP communication.
- Local Development Environment - simple environment for running agent-based simulations.
Agents Assembly
Documentation of Agents Assembly can be read here.
Getting Started
Prerequisites
Python 3.10
Installation
The translator package can be installed by running:
pip install aasm
Alternatively, you can download this repository. No additional dependencies are required.
Usage
You can run the translator as a package. To translate agent.aasm to SPADE, run:
python -m aasm.translate agent.aasm
For more usage information, run:
python -m aasm.translate --help
Structure
generatingcode.py- generated codepython_code.py- Python code base classpython_graph.py- Python graph code generation from the intermediate representationpython_spade.py- SPADE agent code generation from the intermediate representation
intermediateaction.pyagent.pyargument.py- arguments used in instructionsbehaviour.pyblock.py- block of code representationdeclaration.py- declarations used in actionsgraph.pyinstruction.py- instructions used in actionsmessage.py
parsingparse.py- parsing environment from Agents Assembly fileop/- Agents Assembly operationsstate.py- state definition used for the parsing process
preprocessorconstants.py- constants used in the preprocessormacro.py- macro definitions used in the preprocessorpreprocessor_item.py- preprocessor base itempreprocessor.py
utilsexception.pyvalidation.pyiteration.py
translate.py- entrypoint
Contributing
Please follow the contributing guide if you wish to contribute to the project.
Metadata
Release files for aasm 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aasm-0.1.9.tar.gz | 84.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aasm-0.1.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 155.2 kB
Release files / aasm-0.1.9.tar.gz
| Download URL | aasm-0.1.9.tar.gz |
|---|---|
| Size | 84.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2c981c3f17600849b005f4f8d2dc2a2a94bce404233925643793aadc2f3026c
|
|
BLAKE2b-256 checksum How to use checksums |
14166d2063c640b216348e34a624402116e52ab336f2269a30c0669d4a136703
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Release files / aasm-0.1.9-py3-none-any.whl
| Download URL | aasm-0.1.9-py3-none-any.whl |
|---|---|
| Size | 70.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f59b74cdf1daedd816be821f62c652195e09172187664697bd698775dd977fbc
|
|
BLAKE2b-256 checksum How to use checksums |
71ca2617bf2493edfb70b0fcb6cca888c661e770dca21653df734a8b8ff66759
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|