Skip to main content

Isaac Gym Python Stubs for Code Completion

Project description

Isaac Gym Python Stubs for Code Completion

PyPI version

Enable code completion for IsaacGym simply with pip install isaacgym-stubs, even without IsaacGym itself!

# Install from PyPi
pip3 install isaacgym-stubs

# 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

VsCode Demo

PyCharm

PyCharm Demo

Troubleshooting

  1. 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.
  2. Code auto-completion will not function if there's a directory named issacgym in 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 no isaacgym directory in your IDE workspace.
  3. Depending on which IDE you are using, sometimes you may need to restart the IDE after pip install for 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.

How to Generate This pyi

See here for more explanation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

isaacgym_stubs-1.0rc3.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

isaacgym_stubs-1.0rc3-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file isaacgym_stubs-1.0rc3.tar.gz.

File metadata

  • Download URL: isaacgym_stubs-1.0rc3.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for isaacgym_stubs-1.0rc3.tar.gz
Algorithm Hash digest
SHA256 82b28d609ce2f66e9fa5b62c9049cca23d7b5128338abcfa6c7e676d6ffa76ba
MD5 1265847a6fcacae78d289ad82c42524c
BLAKE2b-256 809556e36464c14ebdb0090f1f1ea704e3fa19217e8aa51d6e8e4caa1245b3a1

See more details on using hashes here.

File details

Details for the file isaacgym_stubs-1.0rc3-py3-none-any.whl.

File metadata

File hashes

Hashes for isaacgym_stubs-1.0rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 3339c66ad0b615eda0c16b979aaf3ce0f9d29fc497526af25cd22868b01ef763
MD5 48440514c34b12876faa8a113d136cf1
BLAKE2b-256 b0030662303cc05b31ef709f3a417ab599c8956bc167778ee88f5e06c614da8d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page