Skip to main content

DearCyGui: A simple and customizable Python GUI Toolkit coded in Cython

Project description

DearCyGui: a Multi-platform (Windows, Linux, Mac) GUI library for Python

DearCyGui is an easy to use library to make graphical interfaces in Python.

Main features are:

  • Fast. Speed to create and manage the interface has been one of the main focus.
  • Dynamic interface. It is based on Dear ImGui (https://github.com/ocornut/imgui) to render. Each frame is new, and there is no cost if the content changes a lot a frame to another.
  • Unlike other libraries based on Dear ImGui that provide access to its low-level API, DearCyGui is more high level. As a result your code is easier to read, and less prone to errors. Python is not adapted to call the low-level API as it would quickly become slow (as you would be required to re-render every frame). In DearCyGui you build objects and the backend handles calling the low-level API.
  • Customization. You can create your own widgets or draw elements, and alter how they are rendered.
  • Even more customization, if using Cython. You can cimport DearCyGui and directly access the item internals or create your own drawing functions.
  • Adapted for Object Oriented Programming (All items can be subclassed), though you can use other styles as well.
  • Uses SDL3, and thus has high quality and up-to-date support for DPI handling, etc.
  • MIT Licensed.
  • Low GPU/CPU usage.

Installing

pip install dearcygui to install an old version

Latest development version:

git clone --recurse-submodules https://github.com/DearCyGui/DearCyGui
cd DearCyGui
pip install .

Examples & Documentation

  • Demos Gallery: [https://github.com/DearCyGui/Demos]
  • Documentation: See the docs directory or run documentation.py in the demos

Design Philosophy

DearCyGui bridges the gap between Python's ease of use and Dear ImGui's performance. Rather than making direct Dear ImGui calls each frame from Python (which would be slow), DearCyGui:

  • Uses objects created in Python but managed by compiled C++ code (generated with Cython)
  • C++ code handles the per-frame rendering via Dear ImGui
  • Python code defines the UI structure and handles application logic
  • Cython enables seamless integration between Python and C++

This architecture provides:

  • Fast rendering performance
  • Clean, Pythonic API
  • Full Dear ImGui functionality
  • Extensibility through subclassing

Credits

DearCyGui began as a Cython reimplementation of DearPyGui (https://github.com/hoffstadt/DearPyGui) but has evolved with additional features and a different architecture.

This project uses:

Huge thanks to the Cython team which have enabled this project to see the light of the day.

Portions of this software are copyright © 2024 The FreeType Project (www.freetype.org). All rights reserved.

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

dearcygui-0.0.13.tar.gz (32.7 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

dearcygui-0.0.13-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl (10.7 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ x86-64

dearcygui-0.0.13-cp313-cp313-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.13Windows x86-64

dearcygui-0.0.13-cp313-cp313-manylinux_2_28_x86_64.whl (11.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

dearcygui-0.0.13-cp313-cp313-macosx_11_0_arm64.whl (5.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

dearcygui-0.0.13-cp313-cp313-macosx_10_15_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.13macOS 10.15+ x86-64

dearcygui-0.0.13-cp312-cp312-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.12Windows x86-64

dearcygui-0.0.13-cp312-cp312-manylinux_2_28_x86_64.whl (11.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

dearcygui-0.0.13-cp312-cp312-macosx_11_0_arm64.whl (5.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

dearcygui-0.0.13-cp312-cp312-macosx_10_15_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.12macOS 10.15+ x86-64

dearcygui-0.0.13-cp311-cp311-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.11Windows x86-64

dearcygui-0.0.13-cp311-cp311-manylinux_2_28_x86_64.whl (11.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

dearcygui-0.0.13-cp311-cp311-macosx_11_0_arm64.whl (5.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

dearcygui-0.0.13-cp311-cp311-macosx_10_15_x86_64.whl (5.4 MB view details)

Uploaded CPython 3.11macOS 10.15+ x86-64

dearcygui-0.0.13-cp310-cp310-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.10Windows x86-64

dearcygui-0.0.13-cp310-cp310-manylinux_2_28_x86_64.whl (11.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

dearcygui-0.0.13-cp310-cp310-macosx_11_0_arm64.whl (5.0 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

dearcygui-0.0.13-cp310-cp310-macosx_10_15_x86_64.whl (5.4 MB view details)

Uploaded CPython 3.10macOS 10.15+ x86-64

File details

Details for the file dearcygui-0.0.13.tar.gz.

File metadata

  • Download URL: dearcygui-0.0.13.tar.gz
  • Upload date:
  • Size: 32.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for dearcygui-0.0.13.tar.gz
Algorithm Hash digest
SHA256 8d9ae7372240777ed87aeaa4a6fa350da03ae67dd0faec8897749c4c124493eb
MD5 0c40e3e82c1cbf8e82161787a8a1422a
BLAKE2b-256 2c4186939561bb95ba120289ac8845778eb1190e025beda36ecbfe84141c06fb

See more details on using hashes here.

File details

Details for the file dearcygui-0.0.13-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for dearcygui-0.0.13-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 df36635cabd28a11d72216fe186d12a5d995d394c7f78597f49cd2c5f42bd0ed
MD5 24485c8f4033e806b2d944b35e03424f
BLAKE2b-256 313639505e3c353eb75d68777dcc48565a7f1b619502473e762921d5b760f644

See more details on using hashes here.

File details

Details for the file dearcygui-0.0.13-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: dearcygui-0.0.13-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for dearcygui-0.0.13-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2890b2090899b00d37db3db2286682c7144e9e9380fe6a5955028dd8d6a46c12
MD5 80d4f5abc6b389d5cfd901d09ccb59b8
BLAKE2b-256 63f7c5041272c6c73bc15a656c3c4a873d21d041234b6f21541340d03daf0c1e

See more details on using hashes here.

File details

Details for the file dearcygui-0.0.13-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for dearcygui-0.0.13-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 48ca4a8d8c7b1654fae171e68bc93c6f80a75253683133605ad9e6192a13b96b
MD5 c3fa2956ddbae71960e82d250ce5ec8e
BLAKE2b-256 117143d7725609d403b90a7a7a82f46024964f22314718ab583ecabe7cd8b19a

See more details on using hashes here.

File details

Details for the file dearcygui-0.0.13-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dearcygui-0.0.13-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 64376234009543c1564e124a7c336c9b1f86ebd6637dff65b01ad12d74f8664b
MD5 7cc08806e1e7e963a458fddd4ab14ed5
BLAKE2b-256 51405570e330b95fa3cbf6ec8b843a83e30a89cf871fbb4f12820fe3e726d12b

See more details on using hashes here.

File details

Details for the file dearcygui-0.0.13-cp313-cp313-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for dearcygui-0.0.13-cp313-cp313-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 29e39feb0a44987fd93ea0240eb64685d23824f0ecd049328e53f48c5a364d8a
MD5 17ea16b4fb3354fb06b6aed3f8bd28cb
BLAKE2b-256 2cc4bc0f33d7aeadd0cb8c3f062a10fe810a46d901293ac0b41b44f0ce3d0b9f

See more details on using hashes here.

File details

Details for the file dearcygui-0.0.13-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: dearcygui-0.0.13-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for dearcygui-0.0.13-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 979b2bd982ecea5f4ac5e5b6e1e816d35e0ccd2880bf3c9445df2d7873176f20
MD5 1039cb365a54cf2cdf375714ffc49249
BLAKE2b-256 62b683afb728c8ecdc31ee0b0da5b0b6d4187b909a7632b049734a7a28fc1b81

See more details on using hashes here.

File details

Details for the file dearcygui-0.0.13-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for dearcygui-0.0.13-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 28e553aff9edc65d4c2194fce0c3b6c91cb1795949c5d200035e04854fdccf17
MD5 6cbbde16d1249eb0c832c00d05e6c584
BLAKE2b-256 6bfa9f67aa8a48a4053268490ece8dcb0f72864a6ab0d35900cc1e9f2b68ecb8

See more details on using hashes here.

File details

Details for the file dearcygui-0.0.13-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dearcygui-0.0.13-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 571653e754f70739d25bc79b3bbd844a201393b6af60e6002e584a3412a9ea36
MD5 0ec2623905f961e8a30e2cadd09a78f6
BLAKE2b-256 7fa511179f65a408e207bd880862623f6313e7f7d05da86c617dd571bf089238

See more details on using hashes here.

File details

Details for the file dearcygui-0.0.13-cp312-cp312-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for dearcygui-0.0.13-cp312-cp312-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 3158f2d0ef61b49ad2ead8c7978829009d723d1971a76fb7921ec934512caec5
MD5 d34d7c6d6db2cab5a9f7067b131c1ea2
BLAKE2b-256 0df084e42857eea4900ef17361ab38966f8bc72aab89557a1937e5f0ab2f4a61

See more details on using hashes here.

File details

Details for the file dearcygui-0.0.13-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: dearcygui-0.0.13-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for dearcygui-0.0.13-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4ac39268cf2034f57e163c46ae54a26eb286bd1c19bcd01d1b3cef0fb46c1908
MD5 7d5a840ce91aed708c7fa3a6fa02e408
BLAKE2b-256 605660d83ff5a11418238f1e10ef58c0d7bd278237478e0ece0e0661b5fb31e1

See more details on using hashes here.

File details

Details for the file dearcygui-0.0.13-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for dearcygui-0.0.13-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a0bc2fba41a35b4433134ef57a99763106bf241bd759b8b338093260323d1ecb
MD5 48dfdfa98155456dd9856a88eace2f14
BLAKE2b-256 d6a2c89248931f492c72d6f65a567be1892de2c59a9796028d1d3633f5544318

See more details on using hashes here.

File details

Details for the file dearcygui-0.0.13-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dearcygui-0.0.13-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8132f79045999eb9d121b94b88a8863f25dc7ef10d4a932c8d3df279124696fe
MD5 de569f9c9aed1d539b9759a6559fb313
BLAKE2b-256 ad48d917243f7e53fabe92a8e34ab71c4f13be1c980146d8b74f60c23e56a848

See more details on using hashes here.

File details

Details for the file dearcygui-0.0.13-cp311-cp311-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for dearcygui-0.0.13-cp311-cp311-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 56098218ff8de3ab3e88b533400f44a7005a6e89720939181bd8e1c5bf98a359
MD5 2791cf23179b148b28b079ed722ce188
BLAKE2b-256 6e118939439d5d7560aa650b35aa4f5f66c36dff4d1c4b737aeacc9616f0e6e2

See more details on using hashes here.

File details

Details for the file dearcygui-0.0.13-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: dearcygui-0.0.13-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for dearcygui-0.0.13-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 144a8c5a7757c018e42c281c5fa053d3fd964bfd29906cb25b37696bd3726631
MD5 8734d152140ecbc92d95d10e0f0c2900
BLAKE2b-256 b0ec0ea11230b2c2d8a4d62b473e70a587446e18997f64370540b07087a1f5ea

See more details on using hashes here.

File details

Details for the file dearcygui-0.0.13-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for dearcygui-0.0.13-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ff4e199c177558365a89cf6be206e5f5eb247c1ae8d6d53468d826808126399c
MD5 831bf52d723d055c6a03473a5dbc9b82
BLAKE2b-256 da7c798e8ccce22beebfd9aca5f50a529fd0a137f685cb734649597cb0e7ab50

See more details on using hashes here.

File details

Details for the file dearcygui-0.0.13-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dearcygui-0.0.13-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5ed7fcdd5a37469430d9310e26602527219dc37bc049d3752e77ed60ba052a7c
MD5 db4f62474e1e60d176579a687fcb8c39
BLAKE2b-256 de925dcba6283ce3c220bfab7d386ef5912a5849bd89c729a65cc18f8353f50f

See more details on using hashes here.

File details

Details for the file dearcygui-0.0.13-cp310-cp310-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for dearcygui-0.0.13-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 88b323698a23df5370869ed644c3e2c5f215e2fdea2eeb364e9aa56e417f363d
MD5 fe95027977fa028aaca536b4b298c771
BLAKE2b-256 0310e554b6d7a5e2c858841d41f2e47871d23851dd948f0931448015f4f2c835

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page