fetchai-babble-0.2.0
توضیحات
A simple python library for interacting with the Fetch.ai messaging service (called Memorandum)
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fetchai-babble-0.2.0 |
| نام | fetchai-babble |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Fetch.AI Limited |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/fetchai-babble/ |
| مجوز | Apache 2.0 |
# Babble
A simple python library for interacting with the Fetch.ai messaging service (called Memorandum)
## Quick Example
```python
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 .
نیازمندی
| مقدار | نام |
|---|---|
| >=0.18.0,<0.19.0 | ecdsa |
| >=2.28.2,<3.0.0 | requests |
| >=1.2.0,<2.0.0 | bech32 |
| >=3.16.0,<4.0.0 | pycryptodome |
| >=2.6.0,<3.0.0 | pyjwt |
| >=0.3.13,<0.4.0 | eciespy |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl fetchai-babble-0.2.0:
pip install fetchai-babble-0.2.0.whl
نصب پکیج tar.gz fetchai-babble-0.2.0:
pip install fetchai-babble-0.2.0.tar.gz