Skip to main content

KQML messaging classes in Python.

Project description

PyKQML is an implementation of KQML messaging in Python. It consists of the following classes:

KQMLToken
KQMLString
KQMLQuotation
KQMLList
KQMLPerformative
KQMLReader
KQMLDispatcher
KQMLModule

PyKQML can be installed as

pip install pykqml

You can import KQML classes as, for instance,

from kqml import KQMLList

You can create a new KQML messaging agent as

from kqml import KQMLModule

class MyAgent(KQMLModule):
    def __init__(self, argv):
        # Initialize the agent
        super(MyAgent, self).__init__(argv)
        self.ready()
        super(MyAgent, self).start()

    def receive_request(self, msg, content):
        # Handle request and construct a reply_msg
        # ...
        self.reply(msg, reply_msg)

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

pykqml-0.5.tar.gz (9.4 kB view details)

Uploaded Source

File details

Details for the file pykqml-0.5.tar.gz.

File metadata

  • Download URL: pykqml-0.5.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pykqml-0.5.tar.gz
Algorithm Hash digest
SHA256 8153024518c8cb38153eeccfbcb3c300b4096c34fe9316e890dfa440ae8c8eff
MD5 1f41a561a91bcc05d4d54d3debbdbbef
BLAKE2b-256 6bb3513119a9c40911132cd6f517975a69b54e23ebe1274298fc561384c3cb77

See more details on using hashes here.

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