Skip to main content

Unofficial python stubs for Pixar's Universal Scene Description (USD)

Project description

Unofficial python stubs for Pixar's Universal Scene Description (USD)

These stubs are designed to be used with a type checker like mypy to provide static type checking of USD python code, as well as to provide analysis and completion in IDEs like PyCharm and VSCode (with Pylance).

Installing

pip install types-usd

The version of the package corresponds to the version of USD that it generated from, plus a suffix for the version of the stubs.

The stubs have been tested against a large USD codebase using mypy, however, there are still known issues that need to be resolved.

Using these stubs with mypy will produce erros within the stubs themselves, mostly about missing/unknown types. I've left these errors unsilenced as a reminder to fix them. I recommend adding the following config to your mypy.ini to silence these errors:

[mypy-pxr.*]
ignore_errors = true

If you find any other issues, please report them on the github issues page.

Developing

The stubs are created using information extracted from python signatures generated by boost-python in each function's docstring, combined with data parsed as from the USD C++ docs.

Currently, creating the stubs requires custom forks of mypy and USD, but I hope to have my changes merged into upstream soon.

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

types-usd-23.5.0.tar.gz (103.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

types_usd-23.5.0-py2.py3-none-any.whl (140.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file types-usd-23.5.0.tar.gz.

File metadata

  • Download URL: types-usd-23.5.0.tar.gz
  • Upload date:
  • Size: 103.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.7.9 Darwin/22.4.0

File hashes

Hashes for types-usd-23.5.0.tar.gz
Algorithm Hash digest
SHA256 1cfadef40c9d0e7edf314c189ec90f0eb6b338a96b960557c730a9db675ebd99
MD5 20cc0255778cde0eccb13d75625d3443
BLAKE2b-256 70b63407c21fb53a57d3c5321039bc1dff3b7dfe2571dc25be059b9e87fb80cd

See more details on using hashes here.

File details

Details for the file types_usd-23.5.0-py2.py3-none-any.whl.

File metadata

  • Download URL: types_usd-23.5.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 140.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.7.9 Darwin/22.4.0

File hashes

Hashes for types_usd-23.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6bfa8c1b7199c030bc1054f4c54dec63befe19fbfa82ca62136f5e89de0736b5
MD5 613593f1eace135d1975fb2b92cc4362
BLAKE2b-256 e4e6344faafdff36cef739ff864dda831b8d503d818f72e4ccc5425116827fd1

See more details on using hashes here.

Supported by

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