Skip to main content

Python bindings for OpenTUI - a native terminal UI core written in Zig

Project description

pyopentui

Test

Python bindings for OpenTUI - a native terminal UI core written in Zig.

Installation

pip install pyopentui

Development

Install micromamba, then:

# Create a conda environment and install pip and zig:
git clean -fdx
micromamba create -n pyopentui -y
micromamba activate pyopentui
micromamba install pip zig -y

# Get the latest opentui code:
curl -L -o opentui.zip https://github.com/anomalyco/opentui/archive/refs/tags/v0.1.92.zip
unzip opentui.zip

# Compile the core Zig code:
cd opentui-0.1.92/packages/core/src/zig
zig build -Doptimize=ReleaseSafe

# Copy the shared library in the lib directory:
cd -
mkdir src/pyopentui/lib
cp opentui-0.1.92/packages/core/src/zig/lib/*/* src/pyopentui/lib

Run tests:

pip install -e . --group dev
pytest -v tests

Build the package:

pip install build packaging
python -m build --wheel
python -m build --sdist
python rename_wheel.py

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

pyopentui-0.0.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

pyopentui-0.0.0-cp314-cp314-manylinux_2_39_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.39+ x86-64

File details

Details for the file pyopentui-0.0.0.tar.gz.

File metadata

  • Download URL: pyopentui-0.0.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for pyopentui-0.0.0.tar.gz
Algorithm Hash digest
SHA256 933a887b0414b6988f0b09bf988c6c98d973d0ad7bd73bce34dc5ea81f5f3928
MD5 e9f7337e41e15e7603fd0c5843ee23e2
BLAKE2b-256 2a69ca343c3cbad9993b2ac72f149decbd2bdbb804b36e4d9f5b432c8e3b21fc

See more details on using hashes here.

File details

Details for the file pyopentui-0.0.0-cp314-cp314-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for pyopentui-0.0.0-cp314-cp314-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 678526f22600247a7e7af90225513e4bfd42add70febef826962da108ef2b80f
MD5 08c780fa8893fd55e621b9025b09ec72
BLAKE2b-256 a1d68bb8ed10e3e121d17e4770e4cb4557cba59c023b2e0ccf60a9a20bdc855e

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