Skip to main content

Here’s a basic example of usage:

from pyviewx.client import iViewXClient, Dispatcher
from twisted.internet import reactor

d = Dispatcher()
client = iViewXClient('192.168.1.100', 4444)
client.addDispatcher(d)

@d.listen('ET_FIX')
def PyViewXEvent(inResponse):
        print 'Fixation Start', inResponse

@d.listen('ET_EFX')
def PyViewXEvent(inResponse):
        print 'Fixation End', inResponse

@d.listen('ET_SPL')
def PyViewXEvent(inResponse):
        print 'Sample', inResponse

reactor.listenUDP(5555, client)
reactor.callLater(0, client.setDataFormat, '%TS %ET %SX %SY %DX %DY %EX %EY %EZ')
reactor.callLater(0, client.startDataStreaming)
reactor.callLater(0, client.startFixationProcessing)
reactor.run()

Metadata

Release files for pyviewx.client 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyviewx.client 0.5.1
File Size Uploaded
pyviewx.client-0.5.1.tar.gz 5.0 kB Details

Release files / pyviewx.client-0.5.1.tar.gz

Download URL pyviewx.client-0.5.1.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
dc366bf4cf6be2cef84743f715a7e0dd2a2d65679fa75be08e67a82d508b769e
BLAKE2b-256 checksum
How to use checksums
7da194acec0f8c58337915431604808b306ffffba856ec35e45db1a90dc7d95f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.5.1 This release

1 release file

0.5.0

1 release file

0.4.9

1 release file

0.4.8

1 release file

0.4.7

1 release file

0.4.4

1 release file

0.4.3

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.4.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page