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.1.1.tar.gz (41.0 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.1.1-py3-none-any.whl (29.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for libfcast-3.1.1.tar.gz
Algorithm Hash digest
SHA256 d6b3feb20e4d8a8097d45b53ad79042efc5ab633f42826763099c3b36a757d97
MD5 6bd44a03053f77376aff348621ee5ffa
BLAKE2b-256 cda797d622f55e9eebf59d5d36b1124fffbf49f09ffa1cd805e4b86d8c4a674c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libfcast-3.1.1-py3-none-any.whl
  • Upload date:
  • Size: 29.7 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2470f8cb806a38699d1d45142ec8c3e27398b60ddcb172231df01d0640db0786
MD5 060a59bdeb4bc33b0abb7dfbeb0c3943
BLAKE2b-256 fe7cea015b9ae201d39bed5e886cd7b1f4fddf2bb99dce3164f5dd75604e79c8

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