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.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


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.0.tar.gz (42.7 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.0-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

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

Hashes for libfcast-3.5.0.tar.gz
Algorithm Hash digest
SHA256 f2d09696a7de1d5f70cbc53e759c5e84297d48033cdfdb579adac610776fe2ad
MD5 2b8579346111111f25d6134ed1834c06
BLAKE2b-256 58da4498ffbde68e2e6db8290f861a26ea86f96ce2fa29086a00d08725ae576b

See more details on using hashes here.

Provenance

The following attestation bundles were made for libfcast-3.5.0.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.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

Hashes for libfcast-3.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0399b922fbd1e0b3cd31152cf98580e20db3e4bc3e9f473be74e3ba546cff039
MD5 f92ac20743ef67fe2c2ee9eee6281a0e
BLAKE2b-256 e90cdfc769d313a83b9e2b17da91966daf4f73c4f79e6198ec201bf9a1bb2b8e

See more details on using hashes here.

Provenance

The following attestation bundles were made for libfcast-3.5.0-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