Luvatrix runtime and plotting toolkit
Project description
Luvatrix
Luvatrix is a Python app protocol and rendering runtime for building custom apps that can run headless, on macOS, as static browser-side web apps, and through scaffolded native Android/iOS projects.
Install
Base install:
pip install luvatrix
Optional platform/runtime extras:
pip install "luvatrix[macos]"
pip install "luvatrix[vulkan]"
pip install "luvatrix[macos,vulkan]"
pip install "luvatrix[web]"
pip install "luvatrix[android]"
pip install "luvatrix[ios]"
The base package intentionally includes common raster/data dependencies
(numpy and Pillow). Platform-specific renderers still live behind extras.
Extras are target-scoped: installing luvatrix[ios] does not install macOS
PyObjC bindings, Vulkan bindings, web socket runtimes, or Android-only helpers.
iOS ABI-specific packages are prepared by the native scaffold's
ios/scripts/setup_ios.sh and copied into the app-owned PyPackages bundle.
Create An External App
Create a standalone app outside this repository:
luvatrix init-app my_app
cd my_app
luvatrix validate-app . --render headless
luvatrix run-app . --render headless --ticks 1
For an Android-only app, validate against the Android runtime from your development machine:
luvatrix init-app my_android_app --template camera
cd my_android_app
luvatrix validate-app . --render android-emulator
luvatrix run-app . --render headless --ticks 1
Build and serve a browser-side app:
luvatrix build-web . --out dist/web
luvatrix serve-web .
Run with macOS rendering:
pip install "luvatrix[macos,vulkan]"
luvatrix validate-app . --render macos
luvatrix run-app . --render macos
Native Scaffolds
Native Android and iOS projects are app-owned. Scaffold them into your app repository when you need native targets:
luvatrix init-native . --target android --out android
luvatrix init-native . --target ios --out ios
Then run with the app-owned native project:
luvatrix run-app . --render android-emulator --native-project android
luvatrix run-app . --render ios-simulator --native-project ios
Native prerequisites:
- Android: Android SDK, ADB, Gradle/Android Gradle Plugin support, and a configured emulator or device.
- iOS: Xcode, xcodegen, signing for physical devices, and the iOS Python support
assets prepared by the scaffold's
ios/scripts/setup_ios.sh. - Vulkan on macOS: the Python
vulkanbinding plus a native Vulkan SDK/loader such as Vulkan SDK or MoltenVK.
Native package sync also prunes unrelated platform runtimes from app bundles. Android bundles keep the Android runtime tree, iOS bundles keep the iOS runtime tree, and sibling macOS/web/native-template trees are left out unless that target is being packaged.
App Layout
A minimal Luvatrix app is just:
my_app/
├── app.toml
└── app_main.py
app.toml declares the app id, protocol version, entrypoint, capabilities,
platform support, display metadata, and render preferences. The Python
entrypoint returns an object compatible with init(ctx), loop(ctx, dt), and
stop(ctx), or a subclass of luvatrix.app.App.
Public app-developer API:
from luvatrix.app import App, AppContext, validate_app_install
See docs/app_protocol.md in the repository for the detailed protocol contract.
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
Built Distribution
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 luvatrix-0.1.4.tar.gz.
File metadata
- Download URL: luvatrix-0.1.4.tar.gz
- Upload date:
- Size: 781.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0294372e1c589088fe183f9e02234d8336aff1591413f33c2a81e07f5555a7d0
|
|
| MD5 |
672ba539666a7393151635c8a8ada4b4
|
|
| BLAKE2b-256 |
4454cbd7e0706b3588b9404fe5cd822baa521c4d8fd9969912aceeb55971faa3
|
File details
Details for the file luvatrix-0.1.4-py3-none-any.whl.
File metadata
- Download URL: luvatrix-0.1.4-py3-none-any.whl
- Upload date:
- Size: 832.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ea6db6a19f9a858dfeeb5242e40246ecf270d2946f2ee4a16c04ab14421ec9d
|
|
| MD5 |
f5076ee24244530c5bb9603451a57d1e
|
|
| BLAKE2b-256 |
411821963a9cdc4505b13c13339e7b1b2419bb1b8c531b2b8e4aa2dc92197cec
|