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.0.tar.gz
(10.3 kB
view details)
Built Distribution
File details
Details for the file fetchai_babble-0.4.0.tar.gz
.
File metadata
- Download URL: fetchai_babble-0.4.0.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.2.0-1016-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09d2c47692b3b2c0555dccabf0067ec3bc2cbcf375a1362587e639edd4d87248 |
|
MD5 | a01b72f11dab1050ed8c7da956c91fe5 |
|
BLAKE2b-256 | e9279a455c19adf251e903240ba1d22822d8e3b42415028da4c44c39865d1073 |
File details
Details for the file fetchai_babble-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: fetchai_babble-0.4.0-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.2.0-1016-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44dd7184bb448d89ec843cab0df2ec046d9de6bf1395322bd2b5ec580339e229 |
|
MD5 | 3b559498bcbde5fdab4913c929f5ddb5 |
|
BLAKE2b-256 | aa76e6449d4ad2c781b2e18a772360b53021d42edcccb759449a3cbaba83ef0b |