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.1.2.tar.gz
(41.0 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.1.2-py3-none-any.whl
(29.7 kB
view details)
File details
Details for the file libfcast-3.1.2.tar.gz.
File metadata
- Download URL: libfcast-3.1.2.tar.gz
- Upload date:
- Size: 41.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19675b7607c28dce7a3910a94d88dd7ebda5beb30654198ced5c541aed708fc3
|
|
| MD5 |
55970d9058480f805f7bc5830da9c52e
|
|
| BLAKE2b-256 |
e61cccae41dbc1b865e9da8499f50c8abe929867119874d857075412d564da88
|
File details
Details for the file libfcast-3.1.2-py3-none-any.whl.
File metadata
- Download URL: libfcast-3.1.2-py3-none-any.whl
- Upload date:
- Size: 29.7 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 |
df6b39673e7c88c6a422503f92d38723766094c8f8af6b11c2f0db9b4bd7e865
|
|
| MD5 |
fcb7950fbb6364ed8f93da9e6a8675c7
|
|
| BLAKE2b-256 |
e33bf7fd77b6c1d3b98b0a7af75ab419c7b3b6659c015d6086dc55a000deef11
|