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.2.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

fetchai_babble-0.2.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file fetchai_babble-0.2.0.tar.gz.

File metadata

  • Download URL: fetchai_babble-0.2.0.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-60-generic

File hashes

Hashes for fetchai_babble-0.2.0.tar.gz
Algorithm Hash digest
SHA256 89e409ba1159a4afb134f84e72fae2366588bd635ec2620f48671af33a08b28a
MD5 fad694b79d2101c9d4e2dda0b98b1db5
BLAKE2b-256 067ea3e0d76f606d6a02f11533c7691b88fc8a69c5167ae30fa7a1877886882c

See more details on using hashes here.

File details

Details for the file fetchai_babble-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: fetchai_babble-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-60-generic

File hashes

Hashes for fetchai_babble-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a699a84fbd2bda20fbe3c0540a84fbc23d3792b5719d07c7aa541d9362df2c9d
MD5 7a52fa1747ec7f914abf9ff9e454e802
BLAKE2b-256 5e9180da300f1bbe8efb073c439980faef446d84a14f70b220c184af83111e16

See more details on using hashes here.

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