Skip to content
/ babble Public

A python client library for sending messages via the memorandum service

License

Notifications You must be signed in to change notification settings

fetchai/babble

Repository files navigation

Ruff

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 ruff check --fix && ruff format

About

A python client library for sending messages via the memorandum service

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages