Python bindings for OpenTUI - a native terminal UI core written in Zig
Project description
pyopentui
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyopentui-0.1.0-cp311-cp311-manylinux_2_39_x86_64.whl.
File metadata
- Download URL: pyopentui-0.1.0-cp311-cp311-manylinux_2_39_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.11, manylinux: glibc 2.39+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5aaed86dd05635cb245dbad901da90dbdf3fd4f26cbea4882b3b4303241ee97
|
|
| MD5 |
9d1aa92066086469088e8ca51a9da09c
|
|
| BLAKE2b-256 |
70af525a7bb142c6b6c41bb96a6a1a4a591be00b87cd827d2a52f832d6cdeee4
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyopentui-0.1.0-cp311-cp311-manylinux_2_39_x86_64.whl -
Subject digest:
a5aaed86dd05635cb245dbad901da90dbdf3fd4f26cbea4882b3b4303241ee97 - Sigstore transparency entry: 1206148659
- Sigstore integration time:
-
Permalink:
davidbrochart/pyopentui@d9ab4d33aa1c42291e2cef27c80db8536f214e0d -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/davidbrochart
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d9ab4d33aa1c42291e2cef27c80db8536f214e0d -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyopentui-0.1.0-cp310-cp310-manylinux_2_39_x86_64.whl.
File metadata
- Download URL: pyopentui-0.1.0-cp310-cp310-manylinux_2_39_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.10, manylinux: glibc 2.39+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2d59cedf2a672b5601ca3a5aa453b2f63064d131b863da71e7c764de8fed3ce
|
|
| MD5 |
a9f23a59d8d716e212e2e92d75067561
|
|
| BLAKE2b-256 |
67e95f9d597d8f8ff63f18af5b5b0fac5a989e156bb09ebfbdfdb239c3d6e39e
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyopentui-0.1.0-cp310-cp310-manylinux_2_39_x86_64.whl -
Subject digest:
a2d59cedf2a672b5601ca3a5aa453b2f63064d131b863da71e7c764de8fed3ce - Sigstore transparency entry: 1206148649
- Sigstore integration time:
-
Permalink:
davidbrochart/pyopentui@d9ab4d33aa1c42291e2cef27c80db8536f214e0d -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/davidbrochart
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d9ab4d33aa1c42291e2cef27c80db8536f214e0d -
Trigger Event:
push
-
Statement type: