Skip to main content

A simple python library for interacting with the Fetch.ai messaging service (called Memorandum)

Project description

Babble

A simple python library for interacting with the Fetch.ai messaging service (called Memorandum)

Quick Example

from babble import Client, Identity

# create a set of agents with random identities
client1 = Client('agent1.....', Identity.generate())
client2 = Client('agent1.....', Identity.generate())

# send a message from one client to another
client1.send(client2.delegate_address, "why hello there")

# receive the messages from the other client
for msg in client2.receive():
    print(msg.text)

Developing

Install dependencies

poetry install

Run examples

poetry run ./examples/simple-e2e.py

Run tests

poetry run pytest

Run formatter

poetry run black .

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

fetchai_babble-0.4.1.tar.gz (10.3 kB view hashes)

Uploaded Source

Built Distribution

fetchai_babble-0.4.1-py3-none-any.whl (12.6 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