FCast Python Lib
Project description
Installation
pip install libfcast
Usage
Send message:
import fcast
fc = fcast.FCastSession(<IP/Host>)
fc.connect()
fc.send(fcast.message.Ping())
Handle received messages:
import fcast
def callback(msg: fcast.message.Message):
<do stuff>
fc = fcast.FCastSession(<IP/Host>)
fc.connect()
fc.subscribe((fcast.message.Ping, callback))
fc.receive()
Run receive loop in a separate thread:
import fcast
from threading import Thread
def callback(msg: fcast.message.Message):
<do stuff>
fc = fcast.FCastSession(<IP/Host>)
fc.connect()
fc.subscribe((fcast.message.Ping,callback))
recv_thread = Thread(target=fc.receive)
recv_thread.start()
<do other stuff>
fc.disconnect()
recv_thread.join()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
libfcast-3.3.0.tar.gz
(41.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
libfcast-3.3.0-py3-none-any.whl
(30.0 kB
view details)
File details
Details for the file libfcast-3.3.0.tar.gz.
File metadata
- Download URL: libfcast-3.3.0.tar.gz
- Upload date:
- Size: 41.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c62a33fd5efe96cd484b67a87efae310764b0f9243caaff222558e5fae80d935
|
|
| MD5 |
f66469aaf059eaf3ebc0525d68a62a93
|
|
| BLAKE2b-256 |
b9dd51a7d42440685c41e20b22d32980d21d9083cad9e15f729f4506698a8a8d
|
File details
Details for the file libfcast-3.3.0-py3-none-any.whl.
File metadata
- Download URL: libfcast-3.3.0-py3-none-any.whl
- Upload date:
- Size: 30.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a56161291e5a972bd7ef148b7c5e9d3a5a800e47569c925c5f24f3dd867bfcf7
|
|
| MD5 |
4505bdc88e68a6ea10f458e798d67e1f
|
|
| BLAKE2b-256 |
197946780e769cb5ea8aa636124bd2e4fcdea3757563a4135bfe7d2a8fb58ab3
|