Skip to main content

Async Python User Interface Library

Project description

Project

Build PyPI version

This is a combination of ImGui, ImPlot and Skia. It can be used as a C++ library or out of Python through a Skia python binding with Pybind11

Goals and Features:

  • Hardware-accelerated rendering through DirectX 12
  • Asynchronous, lock-free API
  • Plot with ImPlot or a Matplotlib-backend
  • Builtin Image viewer, virtual keyboard ..
ImGui Elements Matplotlib Integration
widgets matplotlib
ImPlot Flexible
widgets matplotlib
SVG Image Viewer
svg Image Viewer

Installation

pip install p3ui

Hello World

from p3ui import *


async def main():
    window = Window(title='Hello World!')
    
    window.user_interface.content = Row(
        justify_content=Justification.SpaceAround,
        align_items=Alignment.Center,
        children=[Text('Hello'), Text('World')])
    
    await window.closed

    
run(main())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

p3ui-1.1.6-cp311-cp311-win_amd64.whl (8.4 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

p3ui-1.1.6-cp310-cp310-win_amd64.whl (8.4 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

p3ui-1.1.6-cp39-cp39-win_amd64.whl (8.6 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

p3ui-1.1.6-cp38-cp38-win_amd64.whl (8.4 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

Supported by

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