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 ruff check --fix && ruff format
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.2.tar.gz
(10.8 kB
view hashes)
Built Distribution
Close
Hashes for fetchai_babble-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0694c1b07efed1a169b147f22328328de89f19adc9a58d6d22e4484d93e1d57 |
|
MD5 | dd024f40f1ec40f73ff7e64e5d661fef |
|
BLAKE2b-256 | d0cc2b681c80e73f221f2c93a18ced50e6b9e496bc9121a23817fa6cc3717bcc |