Skip to main content

Type stubs for oiio-python

Project description

🔍 types-oiio-python

Type stubs for OpenImageIO Python bindings!

This package provides type stubs for oiio-python, enabling static type checking and better IDE support for OpenImageIO and OpenColorIO Python bindings.


Features

  • 🎯 Complete Type Coverage: Type hints for OpenImageIO and PyOpenColorIO modules
  • 🚀 IDE Support: Enhanced code completion and type checking
  • ✨ MyPy Compatible: Full support for static type checking
  • 🔄 Version Matched: Stubs versions match oiio-python releases

Installation

pip install types-oiio-python

It is recommended to add this package to your project development dependencies.

Usage

Once installed, MyPy and your most IDEs will automatically use these stubs for type checking and code completion.

Autocomplete Type Checking
first second
(Example in VS Code) (Example in VS Code)

Note for Pylint users

Unfortunately Pylint does not (yet) support the use of stubs int the .pyi format.

If you use Pylint, you will need to add the following to your .pylintrc file:

extension-pkg-whitelist=OpenImageIO,PyOpenColorIO

To avoid getting E1101:no-member errors when using compiled modules.

Version Compatibility

The version numbers match the corresponding oiio-python releases. For example:

  • types-oiio-python 2.5.12.0.x corresponds to oiio-python 2.5.12.0.x

Development Notes

  • The stubs are generated using mypy's stubgen tool.
  • Included generate_stubs.py script is used to generate stubs for OpenImageIO and OpenColorIO modules.
  • Manual adjustments are made to improve the generated stubs.
  1. Clone the repository
  2. Install in interactive mode with dev dependencies
    pip install -e .[dev]
    
  3. Test the stubs with MyPy stubtest
    stubtest OpenImageIO --allowlist oiio-mypy-baseline.txt
    stubtest PyOpenColorIO --allowlist ocio-mypy-baseline.txt
    

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_oiio_python-3.0.1.0.1.tar.gz (29.8 kB view details)

Uploaded Source

Built Distribution

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

types_oiio_python-3.0.1.0.1-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file types_oiio_python-3.0.1.0.1.tar.gz.

File metadata

  • Download URL: types_oiio_python-3.0.1.0.1.tar.gz
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.19

File hashes

Hashes for types_oiio_python-3.0.1.0.1.tar.gz
Algorithm Hash digest
SHA256 2bb3aacff34c439370c21427bf4de7cfa98322c412caac6fe02b1afbe68c098b
MD5 ef4de94002463dc8993218405bb2d691
BLAKE2b-256 bd21901f84f8d4b16f5f613f12032a4bd805cd0dbdbe6f94106eac40398f0991

See more details on using hashes here.

File details

Details for the file types_oiio_python-3.0.1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for types_oiio_python-3.0.1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f358dc6d040a4013bf167e831e18f3752fdd01bde6544879b25e91bca0a62fbc
MD5 41d7d79924d3f152049a98449917696d
BLAKE2b-256 b473dc2e2b6c6043c31b9fa3f6883ebaa526591113e7c28d841a6784520c7a46

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