Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/niklasf/python-agentspeak
A Python-based interpreter for the agent-oriented programming language JASON
https://github.com/niklasf/python-agentspeak
agent-based agent-based-modeling agentspeak interpreter python
Last synced: 17 days ago
JSON representation
A Python-based interpreter for the agent-oriented programming language JASON
- Host: GitHub
- URL: https://github.com/niklasf/python-agentspeak
- Owner: niklasf
- License: gpl-3.0
- Created: 2016-11-06T22:30:05.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-21T11:54:32.000Z (10 months ago)
- Last Synced: 2024-12-09T19:53:43.226Z (26 days ago)
- Topics: agent-based, agent-based-modeling, agentspeak, interpreter, python
- Language: Python
- Homepage:
- Size: 755 KB
- Stars: 48
- Watchers: 15
- Forks: 24
- Open Issues: 7
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- License: LICENSE.txt
- Authors: AUTHORS.rst
Awesome Lists containing this project
README
Jason-style AgentSpeak for Python
=================================
.. image:: https://img.shields.io/pypi/v/agentspeak.svg
:target: https://pypi.python.org/pypi/agentspeak.. image:: https://img.shields.io/pypi/pyversions/agentspeak.svg
:target: https://pypi.python.org/pypi/agentspeak.. image:: https://img.shields.io/pypi/l/agentspeak
:target: https://opensource.org/licenses/gpl-3-0
:alt: GPL 3 License.. image:: https://pepy.tech/badge/agentspeak
:target: https://pepy.tech/project/agentspeak
:alt: Downloads.. image:: https://img.shields.io/pypi/format/agentspeak.svg
:target: https://pypi.python.org/pypi/agentspeakA Python-based interpreter for the agent-oriented programming language JASON.
`python-agentspeak` is a Python-based interpreter for the agent-oriented programming language JASON. This library makes it easy to create and manage intelligent agents, offering syntax and functionalities similar to JASON in a Python environment.
Key Features
------------
* Jason-style AgentSpeak interpretation
* Easy integration with existing Python code
* Support for complex agent constructionsSetup
-----.. code::
pip install agentspeak
Requirements
------------
* Python 3.6 or higher
* Additional dependencies are automatically installedUsage example
-------------.. code::
!hello_world.
+!hello_world <-
.print("Hello world!").Usage
-----Run a standalone agent program:
.. code::
$ python -m agentspeak examples/hello_world.asl
Run an interactive console:
.. code::
$ python -m agentspeak
See :code:`examples/embedded` for an example that interfaces with custom
Python code.Jason compability
-----------------python-agentspeak should be mostly equivalent to Jason_.
* Plan annotations are ignored as of yet.
* Standard library does not yet contain syntactic transformations with
:code:`{begin ...}` and :code:`{end}`.
* Standard library does not yet contain introspective and plan-manipulation
actions.
* Jason 2.0 fork join operators not yet supported.
* Literals are only comparable if they have the same signature... _Jason: http://jason.sourceforge.net/