Skip to main content

Raven for Python

Raven is a lightweight, multithreaded GUI library in C for editors and tools. This package is its Python binding, with the library itself included: nothing else to install.

pip install raven-gui
import raven as r

r.Rinit(r.R_BACKEND_VULKAN)
window = r.Rwindow_create_from_xml("""
    <Window Title="Hello" Width="320" Height="160">
        <VBox Spacing="10" Slot.Padding="16">
            <TextInput Name="name" Placeholder="Your name"/>
            <Button Text="Greet" Style="Primary" OnClicked="greet"/>
        </VBox>
    </Window>""")
name = r.Rwidget_find(window, "name")
r.Raction_bind("greet", lambda sender, action, user: print("Hello,", r.Rtext_input_get_text(name)))
while r.Rwait_frame(-1.0):
    pass
r.Rshutdown()

Every function of the C API is there under its own name. Texts are str, callbacks are Python functions, and the values a C function writes through pointers are returned.

Interfaces written in Raven XML with their Python code (.xmlpy files) can be imported directly after import raven_xmlpy; the ravenc compiler they need is included.

Raven draws with Vulkan: the machine needs a Vulkan driver (current graphics drivers include one on Windows and Linux; on macOS, install MoltenVK). On Linux, libX11 is used for the windows.

Wheels: Windows x64, Linux x86_64 (glibc 2.28 or newer), macOS 11 or newer (Apple silicon and Intel). License: Apache 2.0.

Metadata

Release files for raven-gui 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for raven-gui 0.1.3
File Interpreter ABI Platform Actions
raven_gui-0.1.3-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for raven_gui-0.1.3-py3-none-win_amd64.whl

Release files / raven_gui-0.1.3-py3-none-win_amd64.whl

Download URL raven_gui-0.1.3-py3-none-win_amd64.whl
Size 994.8 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
2b9a05de35c869c0166169611a0d503c99d14171a5d0b411aa43402d69121ed3
BLAKE2b-256 checksum
How to use checksums
b8857b512f76c4f7a6026fecb0f26d582901df784af066cff18e9ab78de7e0dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Security for raven-gui 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page