Skip to main content

FCast Python Lib

Project description

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: libfcast-3.4.0.tar.gz
  • Upload date:
  • Size: 42.6 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.0.tar.gz
Algorithm Hash digest
SHA256 41b87effc8858f8c0597d343ac398c6db374b355fcb9989a4604f0a7e89cc3c1
MD5 d332ba11d7d470981a374c1244568fb3
BLAKE2b-256 d48fb92cfbbdf4ae201428dfaa80b0f3f3b2dc342d5217afba58ec57bcbe1c2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libfcast-3.4.0-py3-none-any.whl
  • Upload date:
  • Size: 32.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5eac0241c1bd1f5a14388625b58976f773b400f0b7fdfe9237beffbfde0e31f2
MD5 f817db37f61361b97ab388e22e6745df
BLAKE2b-256 eb278bb94c9c3d3c6748b9c3bd829c0c655de8a7988c8b81b6f9de93db961de9

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