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

# Install the package in editable mode:
pip install -e . --group dev

Run tests:

pytest -v tests

Build the package:

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 Distributions

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

Built Distributions

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

pyopentui-0.1.0-cp311-cp311-manylinux_2_39_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.39+ x86-64

pyopentui-0.1.0-cp310-cp310-manylinux_2_39_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.39+ x86-64

File details

Details for the file pyopentui-0.1.0-cp311-cp311-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for pyopentui-0.1.0-cp311-cp311-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 a5aaed86dd05635cb245dbad901da90dbdf3fd4f26cbea4882b3b4303241ee97
MD5 9d1aa92066086469088e8ca51a9da09c
BLAKE2b-256 70af525a7bb142c6b6c41bb96a6a1a4a591be00b87cd827d2a52f832d6cdeee4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopentui-0.1.0-cp311-cp311-manylinux_2_39_x86_64.whl:

Publisher: publish.yml on davidbrochart/pyopentui

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyopentui-0.1.0-cp310-cp310-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for pyopentui-0.1.0-cp310-cp310-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 a2d59cedf2a672b5601ca3a5aa453b2f63064d131b863da71e7c764de8fed3ce
MD5 a9f23a59d8d716e212e2e92d75067561
BLAKE2b-256 67e95f9d597d8f8ff63f18af5b5b0fac5a989e156bb09ebfbdfdb239c3d6e39e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyopentui-0.1.0-cp310-cp310-manylinux_2_39_x86_64.whl:

Publisher: publish.yml on davidbrochart/pyopentui

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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