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:

fc = fcast.FCastSession(<IP/Host>)
fc.connect()
fc.send(fcast.message.Ping())

Handle received messages:

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:

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


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.4.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.4.1-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for libfcast-3.4.1.tar.gz
Algorithm Hash digest
SHA256 e9cf61a2f096c6ab80f9a84598f5c1778d1f4f3d425ce69b2ce97b6515b787b0
MD5 de243fe20618f74565a2882f5b83cfd3
BLAKE2b-256 52e0cc95399dbb6f38beb47566e427f2d5ec7faf653f2ac226fd43f4e33f54c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libfcast-3.4.1-py3-none-any.whl
  • Upload date:
  • Size: 32.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for libfcast-3.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a5d8705b03c207b16ca419ff02ad49da9b117d59cb1d830f0297b554e5738fc
MD5 a15a853fefc39039a196f7468cf7b75d
BLAKE2b-256 712dfaac753efecadf4d67a26eb2b96e24049377914013a41d2a30ddc15958f9

See more details on using hashes here.

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