This release is a pre-release and may not be stable for production use.
Isaac Gym Python Stubs for Code Completion
Enable code completion for IsaacGym simply with pip install isaacgym-stubs, even without IsaacGym itself!
# Install from PyPi for the latest 1.0rc4 version (preview 4), the 1.1rc4 of this package means enhanced stub, it still corresponds to isaacgym 1.0rc4
pip3 install isaacgym-stubs
# Install it for other IsaacGym version, e.g. preview 3
pip3 install isaacgym_stubs==1.0rc3
# Or preview 2
pip3 install isaacgym_stubs==1.0rc2
# Alternatively, install from Github
# pip3 install git+https://github.com/yzqin/isaacgym-stubs.git
Begin your code with the typical from isaacgym import gymapi and enjoy auto-completion.
The magic of stub is that you even do not need to pip install IsaacGym itself.
For example, you may want to run IsaacGym on server but develop the code on a MacBook. IsaacGym may not support Mac. But you can still install this repo on MacBook and get smooth code completion during development!
Demo
VsCode
PyCharm
Troubleshooting
- The Python interpreter specified in your IDE should be the Python where isaacgym-stubs is installed. For example, if you install this repository with conda Python but select the system Python as the interpreter in your IDE, you won't have any code auto-completion. Follow the official instruction here for VSCode and here for PyCharm.
- Code auto-completion will not function if there's a directory named
issacgymin your workspace. In this case, the isaacgym symbol in your import will point to the directory instead of this package, disrupting the auto-completion. Ensure that there's noisaacgymdirectory in your IDE workspace. - Depending on which IDE you are using, sometimes you may need to restart the IDE after
pip installfor re-indexing.
Overview
This repository contains the pyi stub for the IsaacGym library, which can be used for code completion and type
checking.
According to the guidelines outlined in PEP-561, Python stub files contain only
type information and no runtime code.
The stub in this repo is generated based on IsaacGym version 1.0rc4.
Generating Enhanced pyi Files
The base .pyi files are typically created using tools like mypy or pybind11-stubgen. For improved
documentation, Lai Wei has developed
an automated script that
extracts information from IsaacGym
documentation to produce more descriptive and useful .pyi files. For additional information, refer
to issue #2.
Metadata
Release files for isaacgym-stubs 1.1rc4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| isaacgym_stubs-1.1rc4-py3-none-any.whl | Python 3 | none | any | Details |
Release files / isaacgym_stubs-1.1rc4-py3-none-any.whl
| Download URL | isaacgym_stubs-1.1rc4-py3-none-any.whl |
|---|---|
| Size | 35.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
747b4fcf2c7b99c9d7dec9d4eaacbe8742ba63ef6c925483b46786584328abd3
|
|
BLAKE2b-256 checksum How to use checksums |
f1ec3736d1e5002764124b95e1a581e68402a8650997f62a60ed9f922f339dc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|