Skip to content

tahv/types-maya

Repository files navigation

Important

Development takes place on GitLab: gitlab.com/tahv/types-maya.

types-maya

PyPI PyPI Buy Me a Coffee

External type annotations for Autodesk Maya Python API

PyPIGitLabGitHubChangelog

Provide stubs for language servers such a Pyright or ty.

Installation

Install with pip or uv pip.

pip install types-maya

Stubs status

  • maya.api.*: maintained manually and will likely remain incomplete for some time. Stubs are written from the Maya 2025 Reference.
  • maya.cmds: generated from Maya Commands documentation using cmdsgen.
  • maya.OpenMaya*: not something I'm focusing on, but contributions are welcome.
Import name Status
maya.api.OpenMaya 🟠 Incomplete (~45%)
maya.api.OpenMayaAnim 🟠 Unannotated
maya.api.OpenMayaRender 🟠 Incomplete (~12%)
maya.api.OpenMayaUI 🟠 Unannotated
maya.cmds 🟢 Complete
maya.mel 🟢 Complete
maya.standalone 🟢 Complete
maya.OpenMaya 🔴 Not Covered
maya.OpenMayaAnim 🔴 Not Covered
maya.OpenMayaFX 🔴 Not Covered
maya.OpenMayaMPx 🔴 Not Covered
maya.OpenMayaRender 🔴 Not Covered
maya.OpenMayaUI 🔴 Not Covered

Notes

Annotated is used to add context to some annotations. Some examples:

A sequence of 16 floats.

Annotated[Sequence[float], "[16]"]

A sequence of 4 sequences of 4 floats.

Annotated[Sequence[Sequence[float]], "[4[4]]"]

A sequence of 1 to 6 floats.

Annotated[Sequence[MArgType], "[1..6]"],

A list of 4 int, the x, y, x and w axis.

Annotated[list[int], "[x, y, z, w]"]

Deprecated property.

Annotated[Literal[5], "deprecated"]

Contributing

Contributions of any kind are welcome. Please open an issue or open a merge request.

Alternatives

About

External type annotations for Autodesk Maya Python API

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages