FCast Python Lib
Project description
Description
This is best-effort python implementation of the FCast protocol by FUTO: https://gitlab.futo.org/videostreaming/fcast
I'm not affiliated nor endorsed by FUTO
Currently only protocol version 3 is targeted
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
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
File details
Details for the file libfcast-3.4.2.tar.gz.
File metadata
- Download URL: libfcast-3.4.2.tar.gz
- Upload date:
- Size: 42.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdc36fe424ba2402abac327bed7ee12be88e88f8b86c51ece133e4bdd89454e1
|
|
| MD5 |
86204577056767c9a4a2cb3ac6b55d75
|
|
| BLAKE2b-256 |
287de81adc76ac7a8ede38e2619807e75c7728b8cd9a1313f0f2ee7a447a2deb
|
File details
Details for the file libfcast-3.4.2-py3-none-any.whl.
File metadata
- Download URL: libfcast-3.4.2-py3-none-any.whl
- Upload date:
- Size: 32.3 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 |
b13d5659dc145c4270135155e167a8afa8fedaf50c8c7bdd071edac020fb5ab8
|
|
| MD5 |
1b719bb40bf2d96be3dc576a440ca9cb
|
|
| BLAKE2b-256 |
dc372b8748a83a2adae8603a3fc5d40bdb00448ea627c243fbae66a1119a8c69
|