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.12.tar.gz (32.0 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.12-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl (9.8 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ x86-64

dearcygui-0.0.12-cp313-cp313-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.13Windows x86-64

dearcygui-0.0.12-cp313-cp313-manylinux_2_28_x86_64.whl (10.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

dearcygui-0.0.12-cp313-cp313-macosx_11_0_arm64.whl (4.8 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

dearcygui-0.0.12-cp313-cp313-macosx_10_15_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.13macOS 10.15+ x86-64

dearcygui-0.0.12-cp312-cp312-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.12Windows x86-64

dearcygui-0.0.12-cp312-cp312-manylinux_2_28_x86_64.whl (10.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

dearcygui-0.0.12-cp312-cp312-macosx_11_0_arm64.whl (4.8 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

dearcygui-0.0.12-cp312-cp312-macosx_10_15_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.12macOS 10.15+ x86-64

dearcygui-0.0.12-cp311-cp311-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.11Windows x86-64

dearcygui-0.0.12-cp311-cp311-manylinux_2_28_x86_64.whl (10.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

dearcygui-0.0.12-cp311-cp311-macosx_11_0_arm64.whl (4.8 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

dearcygui-0.0.12-cp311-cp311-macosx_10_15_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.11macOS 10.15+ x86-64

dearcygui-0.0.12-cp310-cp310-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.10Windows x86-64

dearcygui-0.0.12-cp310-cp310-manylinux_2_28_x86_64.whl (10.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

dearcygui-0.0.12-cp310-cp310-macosx_11_0_arm64.whl (4.8 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

dearcygui-0.0.12-cp310-cp310-macosx_10_15_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.10macOS 10.15+ x86-64

File details

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

File metadata

  • Download URL: dearcygui-0.0.12.tar.gz
  • Upload date:
  • Size: 32.0 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.12.tar.gz
Algorithm Hash digest
SHA256 4ace5102f0268e3569b8b1255571f98dd395462e3c6dde4f8d2d28fc5b0435ce
MD5 98c5ecf4f5d05b4ab110d1354eb1fa0b
BLAKE2b-256 85e522a6549598bf2b2a3386053cf1a0f8ff80351ac3bb5e5d372145346b45de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.12-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d178703f83012ae2961bf9ffa9aced43348e9986df68a72f267c0af4c16a4c03
MD5 6abd3abd983421864b82d7f659b56d77
BLAKE2b-256 42fcbce7cdbc080ca6b186201f6b0c0aead3c9beb735130324a6eb9a7dfd7935

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dearcygui-0.0.12-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 4.0 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.12-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2dfc9549b7222cf701b6999194627e1b8949274cf8e426e487209aa602a4afa2
MD5 06e08320c8dee0cd1984c29205e0d762
BLAKE2b-256 abd5a56ecfb0c8a33ac86169ffcde008984e7ef8d35bef4821259483ddb4ec4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.12-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4d88ab8262dd5b2dad9956843915c1c1888fc30638cbb3d697cf796a5b3e29d4
MD5 24e6c13eaa8e8a05c3ff34fa4d54ee66
BLAKE2b-256 5e6c514058cbb4704b1306f6d2490beb9ff5df1bc9fc40b669d3c975b597a60e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.12-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 764c40f81ee8430b9aadd8461c7a3c0dce99be6feb773f09ef90a18a7937af24
MD5 07b45f1ea460b92aabb0a1cba13468bb
BLAKE2b-256 3930865e81f78c6c0e0f55bc4220005ecfae36a029cd64be239b76f6bec1b694

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.12-cp313-cp313-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 80c9322be0d7b66b6b46e192e5521b11fce8ee2cd7d357df95834f31e4cba9d8
MD5 c95ff436a0488f9b631d8653264bbcc5
BLAKE2b-256 3031d14580b8676e0239d94816139ab7208d2cb24d54d0853c1944ca94a9be4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dearcygui-0.0.12-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 4.0 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.12-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4cd5aa3f6e4fa98973ce0abc42bf2b3f83c676a22090ce3b1adaef63f02962ed
MD5 b25f9bba975b9bd7eca4ec90209e07f9
BLAKE2b-256 dc1e88ff0408e0baf1793deb9ef1814b7c3b4929f20c851e1a1d9d6afb5bece8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.12-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a0489dbf229444750c682895066cae988ae9e6b235a04783ee8730731d085663
MD5 2cd11898e605482ed0b87385c3f6996c
BLAKE2b-256 adc2dbd362c2d282a466b23b5e29cfd43046de78feaf06c9eaa95668e965d068

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.12-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5684060a3cd5db69747a41abe4e2e06c7db6d442a59688e46a7aec75091d545d
MD5 172e6ce463956b5a67163e00b90d1f35
BLAKE2b-256 e2a723c33e76a5f92ebd0d2bdc5eace07886ceb74717c4d5009125a942ac8da5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.12-cp312-cp312-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 3da74389e88dff0e793852392117dd0f31c228c7a9989bcc9d110855e4154f02
MD5 4f9fe0c6c3e41c0497204921e902e311
BLAKE2b-256 05f8a075c2222ffe5bf449f3ae045f39c776e1fd4f705da075f25d389db2917f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dearcygui-0.0.12-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 4.0 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.12-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b70ee38b83cd8a1ca4f85d5270ef27ccaf707864acc451dfed53abc7761f2249
MD5 b5e821843451b972b7b7c08dc4862825
BLAKE2b-256 edd0b22de1f54392b01361a99e82e8a1ea0c0d9f43ba3cfccb49d87af975e180

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.12-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fd3e8196f84093570485245f87ad93e28addb56ccc540d1863400277ce79ff16
MD5 950ea1ae8d1e3233bf449472844d343c
BLAKE2b-256 c9701b1d4765a22930825d5c5f34fe5d45ba30c4a583d1032cc1323ce604c4af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.12-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 746eb391187e0a4d7874f7e39ff6a7b6f1a549eb63e7a84a1da521d936cf9d3e
MD5 908cce05dab3b3b2a5e1f19edaa4c074
BLAKE2b-256 1727eb2222c7795267512dd317db87a1e13e93193a87ebacb858b33b361126fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.12-cp311-cp311-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 f55794bda747cc3a247de03574d55c3714b46ab9b776c97642205d7dd436bfb5
MD5 3c2bef8fa71618245890ebf670a61dac
BLAKE2b-256 8a6e9d2b978ae0ab9100a5445957fd426fb757e7a7f57e7406dec96da26a9fdf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dearcygui-0.0.12-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 4.0 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.12-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 efbf24c40ececb392d6349edbfbf74d4a3e074c3b48df0278a93a16bdb7227c1
MD5 cf19883898f4030a372ba72d16154b9f
BLAKE2b-256 e0f3de80c7a76399b28778bd8268f8630e1ed04b42676fad2dc73d8a81652fcb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.12-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6317cb0751d402c4762fe80866e43a61747c255fe7c4c5e686481ffa19ebbc76
MD5 17cc4d106c0cb8939f665d9cc8bca760
BLAKE2b-256 e5a194bdbb81cbcd5da3aa8f4a7996560d376025bf1b52b75d9a8f267c45f710

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.12-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c70f17849063e5952e123e6c0273dfc6aa8d0f92df38e21d08bfa179b9fc653
MD5 2a29e53a9988e00db5b330350953aa72
BLAKE2b-256 28ca5a937bc318880ace63658aa964c640af1e46936ccb1e422f1cd5da42c21e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dearcygui-0.0.12-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 9f3355eae7f8ac4ecbdf150eae5a69ce1f8715a6509658d17a9460daf4ec150c
MD5 6f3c29e6ceed5cd845f64dbf6973c93e
BLAKE2b-256 00bbf069d72aaeb270343b51a2aa9bbb6f2abf83a45e45cfdd637ba5eff349d0

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