Skip to main content

Agents Assembly translator

Project description

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:

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

  • generating
    • code.py - generated code
    • python_code.py - Python code base class
    • python_graph.py - Python graph code generation from the intermediate representation
    • python_spade.py - SPADE agent code generation from the intermediate representation
  • intermediate
    • action.py
    • agent.py
    • argument.py - arguments used in instructions
    • behaviour.py
    • block.py - block of code representation
    • declaration.py - declarations used in actions
    • graph.py
    • instruction.py - instructions used in actions
    • message.py
  • parsing
    • parse.py - parsing environment from Agents Assembly file
    • op/ - Agents Assembly operations
    • state.py - state definition used for the parsing process
  • preprocessor
    • constants.py - constants used in the preprocessor
    • macro.py - macro definitions used in the preprocessor
    • preprocessor_item.py - preprocessor base item
    • preprocessor.py
  • utils
    • exception.py
    • validation.py
    • iteration.py
  • translate.py - entrypoint

Contributing

Please follow the contributing guide if you wish to contribute to the project.

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

aasm-0.1.9.tar.gz (84.7 kB view details)

Uploaded Source

Built Distribution

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

aasm-0.1.9-py3-none-any.whl (70.4 kB view details)

Uploaded Python 3

File details

Details for the file aasm-0.1.9.tar.gz.

File metadata

  • Download URL: aasm-0.1.9.tar.gz
  • Upload date:
  • Size: 84.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for aasm-0.1.9.tar.gz
Algorithm Hash digest
SHA256 a2c981c3f17600849b005f4f8d2dc2a2a94bce404233925643793aadc2f3026c
MD5 4f1fa9da4ccbd6b83db92f0a35b79e6d
BLAKE2b-256 14166d2063c640b216348e34a624402116e52ab336f2269a30c0669d4a136703

See more details on using hashes here.

File details

Details for the file aasm-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: aasm-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 70.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for aasm-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 f59b74cdf1daedd816be821f62c652195e09172187664697bd698775dd977fbc
MD5 aab1d044b639e5d854b9edb0dd947a6d
BLAKE2b-256 71ca2617bf2493edfb70b0fcb6cca888c661e770dca21653df734a8b8ff66759

See more details on using hashes here.

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