https://github.com/hueyyeng/opernrv-stubs
Python stubs for Open RV
https://github.com/hueyyeng/opernrv-stubs
Last synced: 4 months ago
JSON representation
Python stubs for Open RV
- Host: GitHub
- URL: https://github.com/hueyyeng/opernrv-stubs
- Owner: hueyyeng
- Created: 2025-02-10T01:31:21.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2025-04-02T01:28:50.000Z (7 months ago)
- Last Synced: 2025-04-15T11:51:41.221Z (6 months ago)
- Language: Python
- Size: 1010 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Open RV Python Stubs
Type annotated stubs for Open RV's Python API. Work in progress so use at your own risk!
Should be compatible with paid RV as the code base for both Open RV and RV should be from the same source (excluding specific changes for RV that is not available to public).
Currently missing docstring explanation so refer to the built-in help menu:

Fun Trivia: The `rv.commands` is a wrapper for Mu commands:

## Quick setup
Copy `commands.pyi` to `/PlugIns/Python/rv`. Take note the `PlugIns` name can also be `plugins` or `Plugins`. Guess it is a quirk for supporting cross-platform application between Linux, macOS and Windows.

PyCharm should automatically detect the `.pyi` stubs and provide autocompletion with type hints:

## TODO
1. ~~Publish to PyPI.~~ Done [https://pypi.org/project/openrv-stubs/](https://pypi.org/project/openrv-stubs/)
2. Implement the other RV modules with type hints.## Rant
1. There is no way to browse the Mu's manual outside the API browser despite it being a Qt Web Browser. Need to write a parser that analyse the docs from Open RV's source code to generate the docstring for the respective Mu's command. Not sure on the legality on 'scrapping' the source code docstring but navigating the Mu's API Browser is hellish.
2. The current stubs is manually hand-generated but suffice for my requirements for PyCharm/VS Code to autocomplete and provide the required type hints.
3. Yet another Python stubs. At least this ease my frustration when writing Python tools that requires interaction with Open RV.