# py-oiio
Python wheels for OpenImageIO
Currently, just a simple explainer, etc on how to create a usable python module.
## Usage
```python
import oiio
from oiio import ImageInput, ImageOutput
from oiio import ImageBuf, ImageSpec, ImageBufAlgo
```
Everything else should be the same as in the official [OIIO documentation](https://openimageio.readthedocs.io/en/latest/index.html).
## Windows build steps
- Get vcpkg and run script to install
- Install OpenImageIO ``./vcpkg install openimageio[pybind11]:x64-windows``
- Copy the ``vcpkg\installed\x64-windows\lib\python3.10\site-packages\OpenImageIO.cp310-win_amd64.pyd`` file to ``oiio``
- Copy DLLs from ``vcpkg\installed\x64-windows\bin`` to ``oiio``
- Rename pyd file to ``OpenImageIO``
## Releasing on PyPI
- Follow the above steps to build OpenImageIO for Python
- Navigate to the root directory
- Run ``py -m build``
- Then run ``twine upload dist/*`` and follow the prompts.
# License
Licensed under the MIT license.
Raw data
{
"_id": null,
"home_page": "https://github.com/Correct-Syntax/py-oiio",
"name": "joon-oiio",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "openimageio,oiio",
"author": "joon",
"author_email": "postmann@kakao.com",
"download_url": "https://files.pythonhosted.org/packages/53/e8/ecbd61b45645b09b9bfbe772a44d317cbf0b88091de252f27ee10ed836a7/joon_oiio-0.1.tar.gz",
"platform": null,
"description": "# py-oiio\r\nPython wheels for OpenImageIO\r\n\r\nCurrently, just a simple explainer, etc on how to create a usable python module.\r\n\r\n\r\n## Usage\r\n\r\n```python\r\nimport oiio\r\nfrom oiio import ImageInput, ImageOutput\r\nfrom oiio import ImageBuf, ImageSpec, ImageBufAlgo\r\n```\r\n\r\nEverything else should be the same as in the official [OIIO documentation](https://openimageio.readthedocs.io/en/latest/index.html).\r\n\r\n\r\n## Windows build steps\r\n\r\n- Get vcpkg and run script to install \r\n- Install OpenImageIO ``./vcpkg install openimageio[pybind11]:x64-windows``\r\n- Copy the ``vcpkg\\installed\\x64-windows\\lib\\python3.10\\site-packages\\OpenImageIO.cp310-win_amd64.pyd`` file to ``oiio``\r\n- Copy DLLs from ``vcpkg\\installed\\x64-windows\\bin`` to ``oiio``\r\n- Rename pyd file to ``OpenImageIO``\r\n\r\n\r\n## Releasing on PyPI\r\n\r\n- Follow the above steps to build OpenImageIO for Python\r\n- Navigate to the root directory\r\n- Run ``py -m build``\r\n- Then run ``twine upload dist/*`` and follow the prompts.\r\n\r\n\r\n# License\r\n\r\nLicensed under the MIT license.\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "OpenImageIO (OIIO) for Python",
"version": "0.1",
"project_urls": {
"Homepage": "https://github.com/Correct-Syntax/py-oiio"
},
"split_keywords": [
"openimageio",
"oiio"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "98ebddd8e51fd4b804f6bf2198bd62c2e4d0e4eaaadf7426f53a36bad9e7264b",
"md5": "3ece015816c75af77de95953e67ed2f6",
"sha256": "c4307ee7246edabad31988ce6bcfac0f165431dee5fda619d8c388e69768d590"
},
"downloads": -1,
"filename": "joon_oiio-0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3ece015816c75af77de95953e67ed2f6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 11688043,
"upload_time": "2024-01-30T05:47:47",
"upload_time_iso_8601": "2024-01-30T05:47:47.499805Z",
"url": "https://files.pythonhosted.org/packages/98/eb/ddd8e51fd4b804f6bf2198bd62c2e4d0e4eaaadf7426f53a36bad9e7264b/joon_oiio-0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "53e8ecbd61b45645b09b9bfbe772a44d317cbf0b88091de252f27ee10ed836a7",
"md5": "465fe737e8e5705b47e46bdb4880a0fc",
"sha256": "8990bf60040ffa3d01bdbf207a446317c11196f15443d58325391dcd1b4e3f0e"
},
"downloads": -1,
"filename": "joon_oiio-0.1.tar.gz",
"has_sig": false,
"md5_digest": "465fe737e8e5705b47e46bdb4880a0fc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 11623516,
"upload_time": "2024-01-30T05:47:51",
"upload_time_iso_8601": "2024-01-30T05:47:51.798553Z",
"url": "https://files.pythonhosted.org/packages/53/e8/ecbd61b45645b09b9bfbe772a44d317cbf0b88091de252f27ee10ed836a7/joon_oiio-0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-30 05:47:51",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Correct-Syntax",
"github_project": "py-oiio",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "joon-oiio"
}