Skip to main content

Blackboard

Interface

Constructor

Blackboard(addr=MCAST_GRP, port=MCAST_PORT, read_size=READ_SIZE, TTL=MULTICAST_TTL)

  • addr: This is the network address to connect to. It must be an unreserved, available network block that supports the Multicasting protocol. It will default to 244.1.1.1.
  • port: This is the port on the network address the Blackboard will connect to. It will default to 5007.
  • read_size: This will specify the standard read size when getting data from the network address. It will default to 256 bytes.
  • TTL: This is the number of times the signal will propagate through the network before being cut off. It will default to 32.

Methods

  • write_json(channel, data): This will write the specified data to the specified channel. The channel can be any arbitrary string.
  • get(channel): This will return the most recent piece of data received on a specified channel.
  • register_callback(channel, f): This will add a callback function that will be called when a specific channel gets data. The callback must be a function that gets a single argument of the data from the channel.
  • is_open(): This function will return True if the Blackboard is connected to the network, and False otherwise.

Metadata

Release files for Blackboard 0.1.0

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

Source distribution (sdist)

Source distribution for Blackboard 0.1.0
File Size Uploaded
Blackboard-0.1.0.tar.gz 1.5 kB Details

Built distribution (wheel)

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

Total release size: 3.3 kB

Release files / Blackboard-0.1.0.tar.gz

Download URL Blackboard-0.1.0.tar.gz
Size 1.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b13c0c4bcebc228d4536c8fea98e49294ee0b7627a9434451c8b647941dcc835
BLAKE2b-256 checksum
How to use checksums
d4fe2e518d462b9936041ddd03e36466dbf4f0cb486b9697f59e9fbaf7b2c51c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.3

Release files / Blackboard-0.1.0-py3-none-any.whl

Download URL Blackboard-0.1.0-py3-none-any.whl
Size 1.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bdc20a9173de1627b0092d2c75eea9aea14eded94ae778e47015d155abf8f058
BLAKE2b-256 checksum
How to use checksums
7b74c345c66af444fa2cfc760ca518c4c95c5e256014c16ee461efab910e3164
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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