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.5.0.tar.gz.
File metadata
- Download URL: libfcast-3.5.0.tar.gz
- Upload date:
- Size: 42.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2d09696a7de1d5f70cbc53e759c5e84297d48033cdfdb579adac610776fe2ad
|
|
| MD5 |
2b8579346111111f25d6134ed1834c06
|
|
| BLAKE2b-256 |
58da4498ffbde68e2e6db8290f861a26ea86f96ce2fa29086a00d08725ae576b
|
Provenance
The following attestation bundles were made for libfcast-3.5.0.tar.gz:
Publisher:
publish-to-pypi.yml on Derivability/FCast
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
libfcast-3.5.0.tar.gz -
Subject digest:
f2d09696a7de1d5f70cbc53e759c5e84297d48033cdfdb579adac610776fe2ad - Sigstore transparency entry: 701532261
- Sigstore integration time:
-
Permalink:
Derivability/FCast@f1ce77f2cf25ed029ab5311ea120636de9432d92 -
Branch / Tag:
refs/tags/action_test - Owner: https://github.com/Derivability
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@f1ce77f2cf25ed029ab5311ea120636de9432d92 -
Trigger Event:
push
-
Statement type:
File details
Details for the file libfcast-3.5.0-py3-none-any.whl.
File metadata
- Download URL: libfcast-3.5.0-py3-none-any.whl
- Upload date:
- Size: 32.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0399b922fbd1e0b3cd31152cf98580e20db3e4bc3e9f473be74e3ba546cff039
|
|
| MD5 |
f92ac20743ef67fe2c2ee9eee6281a0e
|
|
| BLAKE2b-256 |
e90cdfc769d313a83b9e2b17da91966daf4f73c4f79e6198ec201bf9a1bb2b8e
|
Provenance
The following attestation bundles were made for libfcast-3.5.0-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on Derivability/FCast
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
libfcast-3.5.0-py3-none-any.whl -
Subject digest:
0399b922fbd1e0b3cd31152cf98580e20db3e4bc3e9f473be74e3ba546cff039 - Sigstore transparency entry: 701532262
- Sigstore integration time:
-
Permalink:
Derivability/FCast@f1ce77f2cf25ed029ab5311ea120636de9432d92 -
Branch / Tag:
refs/tags/action_test - Owner: https://github.com/Derivability
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@f1ce77f2cf25ed029ab5311ea120636de9432d92 -
Trigger Event:
push
-
Statement type: