Skip to main content

PyCympleOSC

Python receiver for Cymple Eye and Face tracker OSC data.

No dependencies, pure stdlib OSC decoder. Handles both address forms /EyeLeftX and /avatar/parameters/EyeLeftX.

Install

pip install pycympleosc

Usage

from pycympleosc import CympleOSC

osc = CympleOSC(port=9000)
osc.start()

# polling
eye = osc.eye
if eye.available:
    print(eye.left.x, eye.left.y, eye.right.x, eye.right.y)

print(osc.face["JawOpen"])
print(osc.head.yaw)

osc.stop()

Callbacks:

osc = CympleOSC()

@osc.on_eye
def handle_eye(eye):
    print(eye.left, eye.right)

@osc.on_face
def handle_face(face):
    print(face.jaw_open)

@osc.on_raw
def handle_raw(addr, args):
    print(addr, args)

osc.start()
input("press enter to stop\n")
osc.stop()

Context manager:

with CympleOSC(port=9000) as osc:
    while True:
        print(osc.values)

Multi-port (if eye and face use different ports):

osc = CympleOSC(ports=[9000, 9001])
osc.start()

VRChat / Cymple

Set Cymple OSC target to 127.0.0.1:9000 (or the port you listen on).

Metadata

Release files for pycympleosc 0.1.3

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

Source distribution (sdist)

Source distribution for pycympleosc 0.1.3
File Size Uploaded Provenance Actions
pycympleosc-0.1.3.tar.gz 10.0 kB Without provenance Details for pycympleosc-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pycympleosc 0.1.3
File Interpreter ABI Platform Actions
pycympleosc-0.1.3-py3-none-any.whl Python 3 none any Details for pycympleosc-0.1.3-py3-none-any.whl

Total release size: 17.7 kB

Release files / pycympleosc-0.1.3.tar.gz

Download URL pycympleosc-0.1.3.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a55beccb09eb53c38aa8d36ee1a02127a99b16dda37368a2d9d8c7396d90d832
BLAKE2b-256 checksum
How to use checksums
9985f956188d79ea2480f8a187dadf289869a6ef58636dd6989989a088fadb61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0rc1

Release files / pycympleosc-0.1.3-py3-none-any.whl

Download URL pycympleosc-0.1.3-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d00caa7cb0afbec4030a73108f26178a6bbb50854711ef73d5f85d5f54344d76
BLAKE2b-256 checksum
How to use checksums
5b12a888f220f7f17d519d89f6b9da6dfd9a43db235b3ed3d7f6c1754c063b81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0rc1

Security for pycympleosc 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

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