{"id":13733923,"url":"https://github.com/cmbruns/pyopenvr","last_synced_at":"2025-05-08T10:30:46.428Z","repository":{"id":43580285,"uuid":"58268745","full_name":"cmbruns/pyopenvr","owner":"cmbruns","description":"Unofficial python bindings for Valve's OpenVR virtual reality SDK","archived":false,"fork":false,"pushed_at":"2025-03-21T17:53:36.000Z","size":22700,"stargazers_count":263,"open_issues_count":33,"forks_count":41,"subscribers_count":24,"default_branch":"main","last_synced_at":"2025-04-27T09:50:04.608Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cmbruns.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-05-07T14:10:42.000Z","updated_at":"2025-04-04T15:37:08.000Z","dependencies_parsed_at":"2022-09-07T16:40:31.633Z","dependency_job_id":"5a406e1b-1228-45b9-ac15-2f1ed47c9607","html_url":"https://github.com/cmbruns/pyopenvr","commit_stats":{"total_commits":272,"total_committers":14,"mean_commits":"19.428571428571427","dds":0.0845588235294118,"last_synced_commit":"4f45ab6e65ecd8751b05fe4a4dd62e2d58bed66a"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmbruns%2Fpyopenvr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmbruns%2Fpyopenvr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmbruns%2Fpyopenvr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmbruns%2Fpyopenvr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmbruns","download_url":"https://codeload.github.com/cmbruns/pyopenvr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253045555,"owners_count":21845726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T03:00:50.922Z","updated_at":"2025-05-08T10:30:43.865Z","avatar_url":"https://github.com/cmbruns.png","language":"Python","readme":"# pyopenvr\n### Unofficial python bindings for Valve's OpenVR virtual reality SDK, located at https://github.com/ValveSoftware/openvr\n\n## DEPRECATION NOTICE\n\nOur upstream SDK OpenVR is no longer being updated. Everyone is switching to OpenXR instead. We are working on similar bindings for OpenXR at https://github.com/cmbruns/pyopenxr\n\n## Installation\n- [ ] Install Python 3.5+ https://www.python.org/download/\n- [ ] Install HTC Vive SteamVR\n- [ ] ``pip install openvr`` OR download the installer at https://github.com/cmbruns/pyopenvr/releases\n\n## Use\n\n```python\nimport sys\nimport time\nimport openvr\n\nopenvr.init(openvr.VRApplication_Scene)\nposes = []  # will be populated with proper type after first call\nfor i in range(100):\n    poses, _ = openvr.VRCompositor().waitGetPoses(poses, None)\n    hmd_pose = poses[openvr.k_unTrackedDeviceIndex_Hmd]\n    print(hmd_pose.mDeviceToAbsoluteTracking)\n    sys.stdout.flush()\n    time.sleep(0.2)\nopenvr.shutdown()\n```\n\n\nFor more advanced usage, consult the example at https://github.com/cmbruns/pyopenvr/blob/master/src/samples/glfw/hellovr_glfw.py, which is a complete faithful translation into python from the original C++ sample at https://github.com/ValveSoftware/openvr/tree/master/samples/hellovr_opengl\n","funding_links":[],"categories":["Other tools"],"sub_categories":["Motion Controllers inside Unity!"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmbruns%2Fpyopenvr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmbruns%2Fpyopenvr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmbruns%2Fpyopenvr/lists"}