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.dev330-cp312-abi3-win_arm64.whl (2.6 MB view details)

Uploaded CPython 3.12+Windows ARM64

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

Uploaded CPython 3.12+Windows x86-64

platynui_native-0.12.0.dev330-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.dev330-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.dev330-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.dev330-cp312-abi3-win_arm64.whl.

File metadata

  • Download URL: platynui_native-0.12.0.dev330-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.9 {"installer":{"name":"uv","version":"0.11.9","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.dev330-cp312-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 00f6da6c8b3e7d0681ca20120747eb0646d8aec7517a8960e04dc43cdeda440e
MD5 dd57d48081cc15275e4f1572d1a66b65
BLAKE2b-256 62823e2cf81d2a247eceb0eab4e6d8db4715f665413af3ce62b66afde129fd71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: platynui_native-0.12.0.dev330-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.9 {"installer":{"name":"uv","version":"0.11.9","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.dev330-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 7f0dc5f48492a302cbec246b99b93b86f3558921f2d5a73c6f33c1a85908dd9e
MD5 eaa782273bc8ee71694511c5e0bc3ec0
BLAKE2b-256 47632991c13476575ed1d09f4f1f954a16e7736226f44648c8b8aa3592abf235

See more details on using hashes here.

File details

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

File metadata

  • Download URL: platynui_native-0.12.0.dev330-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.9 {"installer":{"name":"uv","version":"0.11.9","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.dev330-cp312-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 d5421cb5b617f970502773cb74f2c6cfe33eade516ab7f557c158403c3a00816
MD5 16a38a8c74f7e8d974b0acaa358220c2
BLAKE2b-256 34d0d9195a4193335f1e253b92959d776fda3d9ed901e6cbb5c12f1a2d516b73

See more details on using hashes here.

File details

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

File metadata

  • Download URL: platynui_native-0.12.0.dev330-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.9 {"installer":{"name":"uv","version":"0.11.9","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.dev330-cp312-abi3-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 135760db2f407d6aa1c503e4a6e6b622c88d43b5109bef1b9d53b4bb049bda25
MD5 03b043a3dd89944a0cbcf797550c5a7f
BLAKE2b-256 07f4a70d23c86d49cf7f7092d9d2f70659f150d577e0d010a920987f9e362342

See more details on using hashes here.

File details

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

File metadata

  • Download URL: platynui_native-0.12.0.dev330-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.9 {"installer":{"name":"uv","version":"0.11.9","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.dev330-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6245f02b518ecc39d6df1f351abab3a34afd1fbdb88d893bbd9523f9afedd811
MD5 d1fd2455cefb188e947e196556a391c5
BLAKE2b-256 e81a7b17b2745342e0a78af10eb78533c21d67d0f801be5d356901ce2c2a0e1e

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