Skip to main content

Native Python bindings for PlatynUI (core types + runtime)

Project description

platynui-native

platynui-native exposes the PlatynUI runtime to Python. It is mainly used by the Robot Framework libraries in this repository, but it is also useful for smoke tests, experiments, and custom Python wrappers.

Most users should start with the root README, the CLI, or PlatynUI.BareMetal. Use this package directly when you need Python access to runtime queries, nodes, pointer/keyboard actions, screenshots, or mock providers.

Local development

uv sync --dev --all-packages --all-groups --all-extras
uv run maturin develop -m packages/native/Cargo.toml --uv --features mock-provider

The mock-provider feature is useful for tests because it exposes mock UI trees and mock platform devices without relying on the real desktop.

Tiny smoke test

from platynui_native import Runtime

runtime = Runtime.new_with_mock()
nodes = runtime.evaluate("//control:Window", None)
print(len(nodes))

Run package tests with:

uv run pytest -q packages/native/tests

Notes

  • Build with --features mock-provider before using Runtime.new_with_mock().
  • Platform operations such as pointer, keyboard, screenshots, and highlights depend on the selected backend.
  • The public Robot Framework API is expected to live above this package; this package is the lower-level bridge.

More information

  • ../../docs/ - current working notes for Python bindings, Robot Framework library design, and platform behavior.
  • ../../README.md - project overview.

The files in docs/ are working documentation for now and will be replaced or consolidated into proper user documentation later.

License

Apache-2.0. See the repository's LICENSE file.

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.

platynui_native-0.12.0.dev321-cp312-abi3-win_arm64.whl (2.6 MB view details)

Uploaded CPython 3.12+Windows ARM64

platynui_native-0.12.0.dev321-cp312-abi3-win_amd64.whl (2.7 MB view details)

Uploaded CPython 3.12+Windows x86-64

platynui_native-0.12.0.dev321-cp312-abi3-manylinux_2_34_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.34+ x86-64

platynui_native-0.12.0.dev321-cp312-abi3-manylinux_2_34_aarch64.whl (5.3 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.34+ ARM64

platynui_native-0.12.0.dev321-cp312-abi3-macosx_11_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

File details

Details for the file platynui_native-0.12.0.dev321-cp312-abi3-win_arm64.whl.

File metadata

  • Download URL: platynui_native-0.12.0.dev321-cp312-abi3-win_arm64.whl
  • Upload date:
  • Size: 2.6 MB
  • Tags: CPython 3.12+, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","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

Hashes for platynui_native-0.12.0.dev321-cp312-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 bce84c3d90a185980759d54df4287c0e57de67df2d161794305c561108cf361a
MD5 765461e3e33472382c396986e2020c60
BLAKE2b-256 bbd82d45b9c7516008819a866390835eeb8f6706e78c0a8f4514b89f97b41dd2

See more details on using hashes here.

File details

Details for the file platynui_native-0.12.0.dev321-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: platynui_native-0.12.0.dev321-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 2.7 MB
  • Tags: CPython 3.12+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","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

Hashes for platynui_native-0.12.0.dev321-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 15cabccb1b14e9e9126440c1ff17666d3c72928e912c2d2685ad93edb261076c
MD5 c7c2dd93008d9bc20f513d6899949701
BLAKE2b-256 8df8b0068fc5d506943a6de45c4f3ee6c5f81b20557c68d1033ee5f0b99badb8

See more details on using hashes here.

File details

Details for the file platynui_native-0.12.0.dev321-cp312-abi3-manylinux_2_34_x86_64.whl.

File metadata

  • Download URL: platynui_native-0.12.0.dev321-cp312-abi3-manylinux_2_34_x86_64.whl
  • Upload date:
  • Size: 5.3 MB
  • Tags: CPython 3.12+, manylinux: glibc 2.34+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","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

Hashes for platynui_native-0.12.0.dev321-cp312-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 bce0d4e9f774dc9b3919ebc66873cb64b523a479b55a3c5333286db07218ecd7
MD5 82e6fb2cb4b50f525e27fcddd14f439e
BLAKE2b-256 ab1d0fe213c6a971febb725c9c4f587930073837513e520b0be259525ea56647

See more details on using hashes here.

File details

Details for the file platynui_native-0.12.0.dev321-cp312-abi3-manylinux_2_34_aarch64.whl.

File metadata

  • Download URL: platynui_native-0.12.0.dev321-cp312-abi3-manylinux_2_34_aarch64.whl
  • Upload date:
  • Size: 5.3 MB
  • Tags: CPython 3.12+, manylinux: glibc 2.34+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","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

Hashes for platynui_native-0.12.0.dev321-cp312-abi3-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 949c42f14493f2482cd7fa68e356154f54ecdd86d97765233e26a2e383a469e1
MD5 ce7742861d63449658902313919693c5
BLAKE2b-256 d4c3ab0de1601427a47dbc99a1edfb7c40f2d41f951f8e4f6a2af30e75263b93

See more details on using hashes here.

File details

Details for the file platynui_native-0.12.0.dev321-cp312-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: platynui_native-0.12.0.dev321-cp312-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 2.7 MB
  • Tags: CPython 3.12+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","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

Hashes for platynui_native-0.12.0.dev321-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 04b9b0adae787bbae5022a5ed27bab58e068ac055a34ec32610fd79ed99f318e
MD5 50bc978ef75650ce0c82eaac57d11838
BLAKE2b-256 8e05da00ec883205a991cf3972452eb4b0fc9af48e1ecfb5e8456d911da84792

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