Skip to main content

dynatalk-py

This repository is the Python client of Dynatalk.

Dynatalk focuses on communication among objects, especially concerning interoperability among different languages/environments. -- Dynatalk.

To use Dynatalk, you need to:

  1. Run an MQTT broker
  2. Start programming with the dynatalk client.

Install

pip install dynatalk

get started

from dynatalk import Supervisor, PyDemoAgent

supervisor = Supervisor()
# The agent object can work as a server (providing services to other agents) or work as a client (requesting services from other agents).
agent = PyDemoAgent("PyDemoAgent") # PyDemoAgent provides two services: add, echo
supervisor.addAgent(agent)

# As a **client**, agent requests PyDemoAgent to execute add, the parameters are [1, 2]
agent.request("PyDemoAgent", "add", [1 ,2])
# agent.request("LivelyDemoAgent", "add", [1, 2])

# Unlike request, sendTo does not require a response
# agent.sendTo...

to discover agents on the current network:

agent.broadcastHelp()
time.sleep(1)
print(agent.availableActions)

CLi tools

dynatalk message monitor

dynatalk-monitor

FAQ

Set up MQTT

Use environment variables to set up MQTT.

default is:

MQTT_HOST: 127.0.0.1
MQTT_PORT: 1883
MQTT_USERNAME: guest
MQTT_PASSWORD: test

How to set environment variables in Python?

Metadata

Release files for dynatalk 0.7.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dynatalk 0.7.3
File Size Uploaded Provenance Actions
dynatalk-0.7.3.tar.gz 6.5 kB Without provenance Details for dynatalk-0.7.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dynatalk 0.7.3
File Interpreter ABI Platform Actions
dynatalk-0.7.3-py3-none-any.whl Python 3 none any Details for dynatalk-0.7.3-py3-none-any.whl

Total release size: 14.9 kB

Release files / dynatalk-0.7.3.tar.gz

Download URL dynatalk-0.7.3.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6e71f962955a2de0c89f5b933a3c3afa912c605d44adaa40d7e31e773bfae0f4
BLAKE2b-256 checksum
How to use checksums
a406a45f49a1af4446025886763426a84bd7d57ad1b1ec5fb52ab27537778fd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.7 Darwin/23.3.0

Release files / dynatalk-0.7.3-py3-none-any.whl

Download URL dynatalk-0.7.3-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89023ac9f779f9f3f9dd4ef00fdd662ccc9246520b8cf070b15a5600ef0beef9
BLAKE2b-256 checksum
How to use checksums
b0d5689c3d1c8438c6ec025010e252f8f72841268a4f4de8a5d10a97b22bdb2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.7 Darwin/23.3.0

Security for dynatalk 0.7.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page