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 <openrv_path>/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
- Publish to PyPI.
- Implement the other RV modules with type hints.
Rant
- 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.
- The current stubs is manually hand-generated but suffice for my requirements for PyCharm/VS Code to autocomplete and provide the required type hints.
- Yet another Python stubs. At least this ease my frustration when writing Python tools that requires interaction with Open RV.
Metadata
Release files for openrv-stubs 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| openrv_stubs-0.0.1.tar.gz | 2.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| openrv_stubs-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.3 kB
Release files / openrv_stubs-0.0.1.tar.gz
| Download URL | openrv_stubs-0.0.1.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e780c9015fe7c51824b69d417f335defd56e0dc2e2e2fd1e82fed8e9fc02e1d0
|
|
BLAKE2b-256 checksum How to use checksums |
5ee92137b90522d2052df7943d03cd6634cdd88cb7c64288d4414f34e9fbda48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.3
|
Release files / openrv_stubs-0.0.1-py3-none-any.whl
| Download URL | openrv_stubs-0.0.1-py3-none-any.whl |
|---|---|
| Size | 2.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d617250900a8713c2000262a062b8b85cc04a1499df46082f289f6e41b73176d
|
|
BLAKE2b-256 checksum How to use checksums |
8de112fc5223a7a2be94e226da9bf7ee5184c1c248b37bef5358547fa822bb60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.3
|