Skip to main content

Python wrapper for DHTMLX widgets

Project description

DHX PyTincture Widgetset

Overview

The DHX PyTincture Widgetset is a Python-based library that integrates the DHTMLX JavaScript UI components with the pyTincture framework. Leveraging Pyodide, this widgetset enables developers to create rich, interactive web-based user interfaces using Python. It simplifies the process of building cross-platform GUI applications by combining DHTMLX's powerful UI components with pyTincture's seamless Pyodide integration.

Features

  • DHTMLX Integration: Utilize DHTMLX's extensive suite of UI components (e.g., grids, charts, forms, and schedulers) within Python applications.
  • Pyodide-Powered: Run Python code in the browser with Pyodide, enabling dynamic frontend development without leaving the Python ecosystem.
  • Cross-Platform: Build applications that work across various platforms where Pyodide is supported.
  • Customizable Widgets: Easily create and manage reusable UI components tailored to your application's needs.
  • Event-Driven: Support for event handling to create responsive and interactive user experiences.

Installation

Prerequisites

  • Python 3.13+

API Documenataion

https://pytincture.com/dhxpyt.html

Steps

  1. Clone the Repository:
    git clone https://github.com/pytincture/dhx_pytincture_widgetset.git
    cd dhx_pytincture_widgetset
    

Install Dependencies: Install the required Python packages and Pyodide dependencies: bash

pip install -r requirements.txt

or from pypi

pip install dhxpyt

QuickStart

Windows

Install UV / pytincture / dhxpyt on Powershell

powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
$env:Path += ";$env:USERPROFILE\.cargo\bin"
[Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::User)
$env:Path = [System.Environment]::GetEnvironmentVariable("Path", [System.EnvironmentVariableTarget]::User)
New-Item -ItemType Directory -Name dhxpyt_quickstart; Set-Location dhxpyt_quickstart
uv venv --python 3.13; .\.venv\Scripts\Activate.ps1
uv pip install dhxpyt pyodide-py js pytincture itsdangerous
Invoke-WebRequest -Uri https://pytincture.com/quickstart.py -OutFile quickstart.py
$env:PYTHONUTF8 = "1"
uv run quickstart.py

Linux / MacOS

Install UV / pytincture / dhxpyt on Bash

curl -LsSf https://astral.sh/uv/install.sh | sh
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
uv --version
mkdir dhxpyt_quickstart;cd dhxpyt_quickstart
uv venv --python 3.13 && source .venv/bin/activate
uv pip install dhxpyt pyodide-py js pytincture itsdangerous
curl -O https://pytincture.com/quickstart.py
uv run quickstart.py

Open in Browser: http://localhost:8070/quickstart

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

dhxpyt-0.8.8.tar.gz (911.9 kB view details)

Uploaded Source

Built Distribution

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

dhxpyt-0.8.8-py3-none-any.whl (993.5 kB view details)

Uploaded Python 3

File details

Details for the file dhxpyt-0.8.8.tar.gz.

File metadata

  • Download URL: dhxpyt-0.8.8.tar.gz
  • Upload date:
  • Size: 911.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for dhxpyt-0.8.8.tar.gz
Algorithm Hash digest
SHA256 8b80af681b359eeb9f899984ded184374b336eeaa84afc439ad6f2a26ca68fd6
MD5 1ce76e90eb6faa4e2cab8669ecd6e8ee
BLAKE2b-256 f024965760b93c23c6d518b809ac654e2b7745ec83832915926633fc9dc2c1a0

See more details on using hashes here.

File details

Details for the file dhxpyt-0.8.8-py3-none-any.whl.

File metadata

  • Download URL: dhxpyt-0.8.8-py3-none-any.whl
  • Upload date:
  • Size: 993.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for dhxpyt-0.8.8-py3-none-any.whl
Algorithm Hash digest
SHA256 716550c4de434b98b0106b62b2d54c797d9f4b0bc6f15852053bf321e491da46
MD5 0ac923188134e38517e702fe537e630a
BLAKE2b-256 636c3981992807c8b1e62fef347e1e10b5a6147495acc0ec210686f9f372a9c4

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