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 powerful libraries from its ecosystem.

It is aimed at application developers, researchers, and beginners who want to quickly get started.

It enables to easily create ImGui applications in C++ and Python, under Windows, macOS, and Linux.

Test it in 1 minute with python

pip install imgui-bundle
pip install opencv-python
imgui_bundle_demo

Transparent port between C++ and 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

Usage with Python

Installation and demo

Install from pypi

pip install imgui-bundle
# in order to run the immvision module, install opencv-python or opencv-contrib-python
pip install opencv-contrib-python

or install from source:

git clone https://github.com/pthom/imgui_bundle.git
cd imgui_bundle 
git submodule update --init --recursive
pip install -v .
pip install opencv-contrib-python

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++: get started in 5 minutes

Read the instructions inside _example_integration.

Quick application development features

You can develop standard ImGui application the standard way with ImGui Bundle.

However, it also comes with HelloImGui, which provides:

  • DPI aware application (window size, font loading and scaling, etc)
  • Power Save mode: reduce FPS when application is idle
  • Theme tweaking
  • Window geometry utilities (autosize, restore window position)
  • Assets embedding on all platforms
  • Auto initialization of third parties modules (implot, imgui-node-editor, markdown, etc)
  • Easy integration in a C++ project (see _example_integration)

ImGui Backend

ImGui Bundle uses Hello ImGui, which is configured to use GLFW + OpenGL3. As an alternative, SDL support can be enabled.

You can also use any backend, by providing your own integration code (see ImGui examples).

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.2.tar.gz (62.7 MB view hashes)

Uploaded Source

Built Distributions

imgui_bundle-0.7.2-cp311-cp311-win_amd64.whl (66.2 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

imgui_bundle-0.7.2-cp311-cp311-musllinux_1_1_x86_64.whl (25.8 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

imgui_bundle-0.7.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (24.9 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

imgui_bundle-0.7.2-cp311-cp311-macosx_11_0_x86_64.whl (24.0 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ x86-64

imgui_bundle-0.7.2-cp311-cp311-macosx_11_0_arm64.whl (16.4 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

imgui_bundle-0.7.2-cp310-cp310-win_amd64.whl (66.2 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

imgui_bundle-0.7.2-cp310-cp310-musllinux_1_1_x86_64.whl (25.8 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

imgui_bundle-0.7.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (24.9 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

imgui_bundle-0.7.2-cp310-cp310-macosx_11_0_x86_64.whl (24.0 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ x86-64

imgui_bundle-0.7.2-cp310-cp310-macosx_11_0_arm64.whl (16.4 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

imgui_bundle-0.7.2-cp39-cp39-win_amd64.whl (66.4 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

imgui_bundle-0.7.2-cp39-cp39-musllinux_1_1_x86_64.whl (25.8 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

imgui_bundle-0.7.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (24.9 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

imgui_bundle-0.7.2-cp39-cp39-macosx_11_0_x86_64.whl (24.0 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ x86-64

imgui_bundle-0.7.2-cp39-cp39-macosx_11_0_arm64.whl (16.4 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

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