Skip to main content

ImGui Bundle: easily create ImGui applications in Python and C++. Batteries included!

Project description

CppLib Pip Wheels

ImGui Bundle

ImGui Bundle is a bundle for Dear ImGui, including various useful libraries from its ecosystem. It enables to easily create ImGui applications in C++, as well as in Python.

The python bindings were autogenerated from the original C++ code, so that they are easier to keep up to date, and the python API closely matches the C++ api, making it possible to easily port research code from Python to C++.

Python

C++

Batteries included

ImGui Bundle includes:

Philosophy

  • Closely mirrors the original API of ImGui and other libraries
  • Original code documentation is meticulously kept inside the python stubs. See for example the documentation for:
  • Fully typed bindings, so that code completion works like a charm

ImGui Backend

ImGui Bundle uses Hello ImGui, which is configured to use GLFW + OpenGL3. Under C++, this is configurable (see Hello ImGui docs), with some adaptations inside on the cmake side.

Usage with Python

Install

# Install from pypi
pip install imgui-bundle

# or install from clone
git clone https://github.com/pthom/imgui_bundle.git
cd imgui_bundle
pip install -v .

Demo

# imgui_bundle_demo will run the full demo shown on this page. 
# It also acts as a manual for ImGui Bundle with lots of examples and related code source.
imgui_bundle_demo 

The source for the demos can be found inside bindings/imgui_bundle/demos_python.

Usage with C++

git clone https://github.com/pthom/imgui_bundle.git

Then, take inspiration from demos_cpp/demo_haiku_implot_heart, or demos_cpp/demo_widgets_docking

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

imgui-bundle-0.7.1.tar.gz (62.5 MB view hashes)

Uploaded Source

Built Distributions

imgui_bundle-0.7.1-cp311-cp311-win_amd64.whl (66.0 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

imgui_bundle-0.7.1-cp311-cp311-musllinux_1_1_x86_64.whl (25.6 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

imgui_bundle-0.7.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (24.7 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

imgui_bundle-0.7.1-cp311-cp311-macosx_11_0_x86_64.whl (23.8 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ x86-64

imgui_bundle-0.7.1-cp310-cp310-win_amd64.whl (66.0 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

imgui_bundle-0.7.1-cp310-cp310-musllinux_1_1_x86_64.whl (25.6 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

imgui_bundle-0.7.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (24.7 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

imgui_bundle-0.7.1-cp310-cp310-macosx_11_0_x86_64.whl (23.8 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ x86-64

imgui_bundle-0.7.1-cp39-cp39-win_amd64.whl (66.2 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

imgui_bundle-0.7.1-cp39-cp39-musllinux_1_1_x86_64.whl (25.6 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

imgui_bundle-0.7.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (24.7 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

imgui_bundle-0.7.1-cp39-cp39-macosx_11_0_x86_64.whl (23.8 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ 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