{"id":45133,"library":"imgui","title":"pyimgui (Dear ImGui Python bindings)","description":"Cython-based Python bindings for dear imgui (Bloat-free Immediate Mode Graphical User Interface). Version 2.0.0 uses a significantly changed API compared to 1.x; release cadence is irregular.","status":"active","version":"2.0.0","language":"python","source_language":"en","source_url":"https://github.com/pyimgui/pyimgui","tags":["gui","immediate-mode","imgui","opengl"],"install":[{"cmd":"pip install imgui[full]","lang":"bash","label":"Install with all backends"}],"dependencies":[{"reason":"Required for OpenGL renderer backend.","package":"PyOpenGL","optional":true},{"reason":"Required for GLFW window backend.","package":"glfw","optional":true}],"imports":[{"note":"Top-level module is 'imgui', not 'imgui.core' or 'PyImGui'.","symbol":"ImGui","correct":"import imgui"}],"quickstart":{"code":"import imgui\nfrom imgui.integrations.glfw import GlfwRenderer\nimport glfw\n\ndef main():\n    imgui.create_context()\n    window = impl_glfw_init()\n    impl = GlfwRenderer(window)\n\n    while not glfw.window_should_close(window):\n        glfw.poll_events()\n        impl.process_inputs()\n        imgui.new_frame()\n\n        if imgui.begin_main_menu_bar():\n            if imgui.begin_menu(\"File\", True):\n                clicked_quit, _ = imgui.menu_item(\"Quit\", \"Cmd+Q\", False, True)\n                if clicked_quit:\n                    exit(0)\n                imgui.end_menu()\n            imgui.end_main_menu_bar()\n\n        imgui.show_test_window()\n        imgui.render()\n        impl.render(imgui.get_draw_data())\n\n    impl.shutdown()\n    glfw.terminate()\n\ndef impl_glfw_init():\n    width, height = 1280, 720\n    window_name = \"minimal ImGui/GLFW example\"\n\n    if not glfw.init():\n        return None\n\n    glfw.window_hint(glfw.CONTEXT_VERSION_MAJOR, 3)\n    glfw.window_hint(glfw.CONTEXT_VERSION_MINOR, 3)\n    glfw.window_hint(glfw.OPENGL_PROFILE, glfw.OPENGL_CORE_PROFILE)\n\n    glfw.window_hint(glfw.OPENGL_FORWARD_COMPAT, glfw.TRUE)\n\n    window = glfw.create_window(int(width), int(height), window_name, None, None)\n    glfw.make_context_current(window)\n\n    if not window:\n        glfw.terminate()\n        return None\n\n    return window\n\nif __name__ == \"__main__\":\n    main()","lang":"python","description":"Minimal GLFW+OpenGL example creating a window with a main menu bar and test window."},"warnings":[{"fix":"Adapt all calls to imgui.begin() to unpack both values.","message":"v2.0.0 changed the core API: 'begin()' now returns a tuple (expanded, expanded) instead of the previous pattern. Use 'expanded, _ = imgui.begin(\"Window\")'.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Change 'from imgui.core import *' to 'import imgui'.","message":"v2.0.0 removed the old 'imgui.core' module; all symbols are now directly under 'imgui'.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Install with 'pip install imgui[glfw]' or 'pip install imgui[sdl2]'.","message":"Integration backends (GLFW, SDL2, etc.) are separate packages or require manual installation of the corresponding system libraries.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'1':31 '2.0.0':23 'api':28 'base':8 'bind':5,10 'bloat':15 'bloat-fre':14 'cadenc':34 'chang':27 'compar':29 'cython':7 'cython-bas':6 'dear':2,12 'free':16 'graphic':19 'gui':37 'imgui':3,13,41 'immedi':17,39 'immediate-mod':38 'interfac':21 'irregular':36 'mode':18,40 'opengl':42 'pyimgui':1 'python':4,9 'releas':33 'signific':26 'use':24 'user':20 'version':22 'x':32","created_at":"2026-06-07T12:53:31.220208+00:00","updated_at":"2026-06-07T12:53:31.220208+00:00","problems":{"verify_error":"× Failed to build `imgui==2.0.0`\n  ├─▶ The build backend returned an error\n  ╰─▶ Call to `setuptools.build_meta.build_wheel` failed (exit status: 1)\n\n      [stdout]\n      running bdist_wheel\n      running build\n      running build_py\n      copying imgui/__init__.py -> build/lib.linux-x86_64-cpython-"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/pyimgui/pyimgui","github":"https://github.com/pyimgui/pyimgui","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"install_fail","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-06","install_tag":null}}