Skip to main content

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.PingMessage, 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.PingMessage,callback))
recv_thread = Thread(target=fc.receive)
recv_thread.start()
<do other stuff>
fc.disconnect()
recv_thread.join()

Project details


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.5.1.tar.gz (42.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

libfcast-3.5.1-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

Details for the file libfcast-3.5.1.tar.gz.

File metadata

  • Download URL: libfcast-3.5.1.tar.gz
  • Upload date:
  • Size: 42.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for libfcast-3.5.1.tar.gz
Algorithm Hash digest
SHA256 6f95bc4f60625432e536ac18eb2f9ca871d415fe6318da8de1fa8ef75627b6e8
MD5 854edf6a69edac5e7ae7d3919d8475fd
BLAKE2b-256 64e0f492b18cfc932c1cd50d782d16f5a1d496ed91ed2ef4e10cf5873001fcc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for libfcast-3.5.1.tar.gz:

Publisher: publish-to-pypi.yml on Derivability/FCast

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file libfcast-3.5.1-py3-none-any.whl.

File metadata

  • Download URL: libfcast-3.5.1-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

Hashes for libfcast-3.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d1ca320ea6568bcf4dcf94a9d6a6ec39d73b5a6f6917a2f45c61a50c5b7f118e
MD5 20ac52b90924f9e10939c1296802e143
BLAKE2b-256 7b36d59783f81974b032fcda0a0bbb8aad85d7a7a0004a8657ac6c64fee161bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for libfcast-3.5.1-py3-none-any.whl:

Publisher: publish-to-pypi.yml on Derivability/FCast

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page