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.11.tar.gz (29.2 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.11-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl (8.9 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ x86-64

dearcygui-0.0.11-cp313-cp313-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.13Windows x86-64

dearcygui-0.0.11-cp313-cp313-manylinux_2_28_x86_64.whl (9.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

dearcygui-0.0.11-cp313-cp313-macosx_11_0_arm64.whl (4.4 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

dearcygui-0.0.11-cp313-cp313-macosx_10_15_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.13macOS 10.15+ x86-64

dearcygui-0.0.11-cp312-cp312-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.12Windows x86-64

dearcygui-0.0.11-cp312-cp312-manylinux_2_28_x86_64.whl (9.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

dearcygui-0.0.11-cp312-cp312-macosx_11_0_arm64.whl (4.4 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

dearcygui-0.0.11-cp312-cp312-macosx_10_15_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.12macOS 10.15+ x86-64

dearcygui-0.0.11-cp311-cp311-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.11Windows x86-64

dearcygui-0.0.11-cp311-cp311-manylinux_2_28_x86_64.whl (9.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

dearcygui-0.0.11-cp311-cp311-macosx_11_0_arm64.whl (4.4 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

dearcygui-0.0.11-cp311-cp311-macosx_10_15_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.11macOS 10.15+ x86-64

dearcygui-0.0.11-cp310-cp310-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.10Windows x86-64

dearcygui-0.0.11-cp310-cp310-manylinux_2_28_x86_64.whl (9.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

dearcygui-0.0.11-cp310-cp310-macosx_11_0_arm64.whl (4.4 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

dearcygui-0.0.11-cp310-cp310-macosx_10_15_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.10macOS 10.15+ x86-64

File details

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

File metadata

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

File hashes

Hashes for dearcygui-0.0.11.tar.gz
Algorithm Hash digest
SHA256 44b336763aa3044fc8e77fb953067052b2df8e5c13fbe5ffb672165750adf69d
MD5 641399cf2a897522fb21523ab707c32c
BLAKE2b-256 80ce53f9744cea90a20b24e0f0aa199e64ea0711d678f0de9af26563cd753900

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.11-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b3ce3f30a78061c732c7284863ad94f154743719e97f6cf0ff4c10923855fbf1
MD5 5e8ed885acc38fb4923b797d0526a536
BLAKE2b-256 e6ec6d0a6a9b3f7ad0f971501d6fdd5b446584395f0d62597ec8f92a3a49cb77

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dearcygui-0.0.11-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 cc4ae04db31ef0786175859bd89a7277134744d638bf675ba74d5042716f6def
MD5 be9cbda3f82eaac7184cbc15e719cc53
BLAKE2b-256 2dbcdaac4724029dd34dc744222cca1f1972d7d80c95a887e528110ebe73a0ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.11-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 adf02694e32218a4b30a578f55e2486be64c491c56dd1b6c4fa047040546ca09
MD5 3d7890a52e21e6c3c90c13f3e08f348e
BLAKE2b-256 9d94ea00ebaeef97577568cbc670c7c0a3b851199c61c48c8bf1d2464ac9f3db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.11-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba2125a428e424ba9d7737df78793e917c349e35d3f14e25fcdce3ec15b8a879
MD5 c41592054fe40f536a4d843fa1244e60
BLAKE2b-256 148217556a8a85acb920aeec090df4b4c2d9cabe4e12a3e99c155cf95dd439fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.11-cp313-cp313-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 096e2401370d6bacbadca89cd1d9942417255c18927c20286829034cbc9d02fe
MD5 fc51d87934e028e0fa1272f8e7130cc7
BLAKE2b-256 3be5c5e5ff887515a20c59ee5582bb562e58fcbcfb5233cd8d0442699a51cc42

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dearcygui-0.0.11-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d581aefad877d88bc632f78275ceb3d925164a1e1313b9e29894c6034f07ff71
MD5 129d905c52aa1a44c7e40451abdeae80
BLAKE2b-256 cdd738b9d5378d5f8f459d82d3739f9c4d2ced8a317f6a9c530f74b815341e3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.11-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4851ae0810c76da20e0fea0308a42427f3a3907011192f982fc2038eb69a0cab
MD5 e0bd604aafdeae9f5348f4023ef9a7e0
BLAKE2b-256 f67cacf49b09e1e12467e3e83b2c1e2331a71c622553827e34a831241b4a59bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.11-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eb3b14187d4434856d8c98109012b9cbcb1e584ebe84da55fe4a0c960afc9ecf
MD5 8baaecf5b114da103f190ccaddd92284
BLAKE2b-256 13b0ed8e60bedeb9ae8d346f3ea80fa853823360356a7f1ffc16809fae3997c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.11-cp312-cp312-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 83c33b4c3c19e480352d67051bc1bb538359e21ed4eb9f58238d477a302d1166
MD5 f4e330e7672b39af9ef0a3c2dc8721ef
BLAKE2b-256 efa2ede2dcbdf5138832525a754c53138d9d08e4dc932809b21c7f37118504f3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dearcygui-0.0.11-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a7ec8d56388346ec7aab5640fab72850df2c3630d1a8fee5ae5dd06f3164255e
MD5 aa72c23b1177ecc24f3f131a0c6b45b9
BLAKE2b-256 e68c9702497c458a3d9341d2d4105d7b7d3709a59d8f84a005a5069cfcbafbc3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.11-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4e8339407c6b5526e001fb1b72c6c9999cdb85ada7e2b394d35111c615489d7d
MD5 44e97d47ec5c1e48d8101a799b8879f1
BLAKE2b-256 765cac3363021608d1808d3a291f309da299ae8513eb67d90a50a94ca338ff84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.11-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e9676f0aebe0cf69a6987505b465f74d10b5d6f0355a41c93975a3432d6252f5
MD5 de5e97bfcbc5e6b04a556c928bc0573a
BLAKE2b-256 a7060219b7fa15ca211fb39da1356f7444ca28db08b21fc99fc98b4ac536933e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.11-cp311-cp311-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 62d67d178101cac55bc745f5656930c7d816c33eebd66617dfc08b0eb041173b
MD5 51acf40f0f971f3e9605f4908a921b33
BLAKE2b-256 4cfbc521d0655252a17d7daa4285d649607a145b63f7012970c774c66517d5db

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dearcygui-0.0.11-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2e65c5fed19b731ddad7c2b3dfa42da2e6546489cd096377ac155922ffcf7fb6
MD5 c2cd4d1f84153e38d7aab865f6ecdd96
BLAKE2b-256 962b18e158ade66c90f7f10cda276c91356a6aaf4a0a110271d6f53a7aa3334e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.11-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 47f6e327aef23aac5d0fb20e7320f363900dc58a6103a1c8765ecc485ca94b72
MD5 3c8e12357d466ad1b998cfe1c21f40f9
BLAKE2b-256 ea841af1bb9c78ec910a5412f727d8bd9818e233adada7988be7170fbf4a02cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.11-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f077bedec98de238991a1ab0aab96913222eb6d73392cf4aa33444cb2b7f22fa
MD5 a2c7ca8efdcfe6c1093d492778232406
BLAKE2b-256 1ac5ff762b69378cce4a05b90906b5eefe9dd8af5241926a5933cac0246e2dd5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.11-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 9573b0617983c6c2ef1d21bc54786fd742347e47c1a2ce47402f5f87dbc33339
MD5 0afa9f46a736947dafa46d253b7d27ab
BLAKE2b-256 412a49e344fcf0eef9cd3234ee871c822d347ab1d342b13ce5452ca1331028ca

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