Skip to main content

Python Dear ImGui bindings built with Nanobind

Project description

slimgui: Updated ImGui bindings for Python

Work in progress Dear ImGui bindings for Python.

Motivation:

  • Modernized build process to support Python typings (.pyi files) to allow good IDE support (auto-complete, type checking in VSCode)
  • Closely match the Dear ImGui API but adapt for Python as necessary. Don't invent new API concepts.

Very similar to https://github.com/pyimgui/pyimgui except built with Nanobind to better support typings.

Development

python3 -m venv .venv
.venv\Scripts\activate.bat
pip install git+https://github.com/wjakob/nanobind scikit-build-core[pyproject] click glfw pyopengl numpy
pip install --no-build-isolation -ve .
python gen\gen_nb.py > src\im_enums.inl

Cimgui outputs for some API generation

Switch to v1.90.5 branch for imgui before running generator.bat.

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

slimgui-0.0.1.tar.gz (2.0 MB view hashes)

Uploaded Source

Built Distributions

slimgui-0.0.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

slimgui-0.0.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

slimgui-0.0.1-cp312-abi3-musllinux_1_1_x86_64.whl (3.2 MB view hashes)

Uploaded CPython 3.12+ musllinux: musl 1.1+ x86-64

slimgui-0.0.1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view hashes)

Uploaded CPython 3.12+ manylinux: glibc 2.17+ x86-64

slimgui-0.0.1-cp311-cp311-musllinux_1_1_x86_64.whl (3.2 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

slimgui-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

slimgui-0.0.1-cp310-cp310-musllinux_1_1_x86_64.whl (3.2 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

slimgui-0.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

slimgui-0.0.1-cp39-cp39-musllinux_1_1_x86_64.whl (3.2 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

slimgui-0.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

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