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_DEFAULT)
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.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| raven_gui-0.3.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for raven_gui-0.3.0-py3-none-win_amd64.whl |
Release files / raven_gui-0.3.0-py3-none-win_amd64.whl
| Download URL | raven_gui-0.3.0-py3-none-win_amd64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
14b8b517266ce9e65d33ec474c6f17b9b2e085adfc76aced0d3f0d946a256632
|
|
BLAKE2b-256 checksum How to use checksums |
54ad33cf5432b716bc10fd96590a8f3246bb0dc7887cd4f858bec28faaf10299
|
| 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.3.0
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.