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 details)
Built Distribution
File details
Details for the file fetchai_babble-0.4.2.tar.gz
.
File metadata
- Download URL: fetchai_babble-0.4.2.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1022-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eee63d96f0d606875c3d324adbf8fc4142f211a17edb613492d851e0d6b1549 |
|
MD5 | a1e2b58958990e2df5f87715c8af840a |
|
BLAKE2b-256 | 632328eda18ce56e50f8cb3cb1b250e9552dd6382a7c3630724411244888eb3f |
File details
Details for the file fetchai_babble-0.4.2-py3-none-any.whl
.
File metadata
- Download URL: fetchai_babble-0.4.2-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1022-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0694c1b07efed1a169b147f22328328de89f19adc9a58d6d22e4484d93e1d57 |
|
MD5 | dd024f40f1ec40f73ff7e64e5d661fef |
|
BLAKE2b-256 | d0cc2b681c80e73f221f2c93a18ced50e6b9e496bc9121a23817fa6cc3717bcc |