Skip to main content

Framework para desenvolvimento de sistemas multiagentes em Python

Project description

Python Agent DEvelopment framework (PADE)

Join the chat at https://gitter.im/lucassm/Pade


PADE

PADE its a framework for developing, executing and mannaging multi-agent systems in distributed computing enviroments. PADE code is 100% Python and has its core in Twisted, a python package for implementing distributed applications.

PADE is also free software and licenced in terms of MIT licence. First it was developed in Federal University of Ceará (Brazil) by Electric Smart Grids Group (GREI) in Electric Engineering Department (DEE). Now everyone that has interest in developing PADE is welcome to dowload, install, test, use and send us feedback.

Documentation

PADE is well documented. You can access the documentation hear: PADE documentation

Dependencies

PADE is developed in Python 3.7 and has a Twisted core.

Install

Via Python Package Index (PyPI):

$ pip install pade

Via Github:

$ git clone https://github.com/greiufc/pade
$ cd pade
$ python setup.py install

That's all!

Example

Hello world in PADE:

from pade.misc.utility import display_message
from pade.misc.common import PadeSession
from pade.core.agent import Agent
from pade.acl.aid import AID


class AgenteHelloWorld(Agent):
    def __init__(self, aid):
        super(AgenteHelloWorld, self).__init__(aid=aid, debug=True)
        display_message(self.aid.localname, 'Hello World!')


def config_agents():

    agents = list()

    agente_hello = AgenteHelloWorld(AID(name='agente_hello'))
    agents.append(agente_hello)

    s = PadeSession()
    s.add_all_agents(agents)
    s.register_user(username='pade_user', email='user@pademail.com', password='12345')

    return s

if __name__ == '__main__':

    s = config_agents()
    s.start_loop()

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

pade-2.0.1.tar.gz (26.4 kB view hashes)

Uploaded Source

Built Distribution

pade-2.0.1-py3-none-any.whl (116.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page