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.

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.2.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.2.3
File Interpreter ABI Platform Actions
raven_gui-0.2.3-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for raven_gui-0.2.3-py3-none-win_amd64.whl

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

Download URL raven_gui-0.2.3-py3-none-win_amd64.whl
Size 1.1 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
d455cc025f9cdb8bc6c2189a762fcf68fcda68ea3ec414e5c14ed2d93b2bbef8
BLAKE2b-256 checksum
How to use checksums
631cf7576d9b17b0d77916eddaec42813db058bfef18215b6c2f078baae72387
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.2.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