Skip to main content

OpenGL UI powered by Cython

Project description

Code style: black Build and deploy PyPI version pre-commit

pyglui

Cython powered OpenGL gui.

  • Similar to AntTweakBar but truly python compatible. No need for ctyped variables.

  • Uses render-to-texture for ulta low cpu use when static.

  • Designed to be used with glfw but should run with other window managers as well.

  • Includes pyfontstash for rendering text.

  • Includes cygl to access GL functions (which in turn uses GLEW)

  • cygl and pyfontstash can also be installed separately but are hosted in this project for convenience.

Installation

pip install pyglui

Source installation

Dependencies

  • install glew

Linux (via apt-get)

sudo apt-get install libglew-dev

Linux (via yum)

yum install glew-devel

MacOS

brew install glew
  • install pyglui
python -m pip install git+https://github.com/pupil-labs/pyglui

Source code

# Clone the repository to the local filesystem
git clone http://github.com/pupil-labs/pyglui --recursive
cd pyglui

# Build and install `pyglui` in "editable" mode
python -m pip install -e .

Run the demo

# Clone the repository to the local filesystem
git clone http://github.com/pupil-labs/pyglui --recursive
cd pyglui

# Build and install `pyglui` in "editable" mode, with examples dependencies
python -m pip install -e ".[examples]"

# Run the demo example
cd example
python3 example.py

Demo screenshot as of 2017-12-19

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

pyglui-1.31.1.tar.gz (2.4 MB view hashes)

Uploaded Source

Built Distributions

pyglui-1.31.1-cp311-cp311-win_amd64.whl (3.4 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

pyglui-1.31.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.5 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pyglui-1.31.1-cp311-cp311-macosx_10_9_x86_64.whl (3.5 MB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

pyglui-1.31.1-cp310-cp310-win_amd64.whl (3.4 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

pyglui-1.31.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.2 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pyglui-1.31.1-cp310-cp310-macosx_10_9_x86_64.whl (3.5 MB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

pyglui-1.31.1-cp39-cp39-win_amd64.whl (3.4 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

pyglui-1.31.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.2 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pyglui-1.31.1-cp39-cp39-macosx_10_9_x86_64.whl (3.5 MB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

pyglui-1.31.1-cp38-cp38-win_amd64.whl (3.4 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

pyglui-1.31.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.5 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pyglui-1.31.1-cp38-cp38-macosx_10_9_x86_64.whl (3.5 MB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

pyglui-1.31.1-cp37-cp37m-win_amd64.whl (3.4 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

pyglui-1.31.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

pyglui-1.31.1-cp37-cp37m-macosx_10_9_x86_64.whl (3.5 MB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

pyglui-1.31.1-cp36-cp36m-win_amd64.whl (3.4 MB view hashes)

Uploaded CPython 3.6m Windows x86-64

pyglui-1.31.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.8 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

pyglui-1.31.1-cp36-cp36m-macosx_10_9_x86_64.whl (3.5 MB view hashes)

Uploaded CPython 3.6m macOS 10.9+ 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