Skip to main content

Nevu UI Intro Banner

alt text

Nevu-UI Documentation

Nevu UI is a GUI library for easily creating interfaces in Python, which provides a set of ready-made, customizable components and convenient tools for creating interfaces in games and applications.

Key features:

  • Layouts: Containers that automatically position elements inside themselves, for example Grid, VScroll.
  • Widgets: Ready-made graphical elements, for example Button, Label, Input.
  • Styling: Customization of the widgets' appearance via Style to suit your needs.
  • Animations: Support for animations via AnimationManager.
  • Different UI creation modes Support for declarative and imperative creation, with the ability to combine them.
  • Multiple backends: Support for Raylib and Pygame
  • Easy integration: Ability to embed nevu-ui into an existing game or application using InitializedWindow.


Style banner


Example1


Example2


Example3


Example: Button in a 3x3 Grid

Declarative approach

import pygame

# Import nevu-ui
import nevu_ui as ui

pygame.init()

window = ui.Window(size = (400, 300), title = "Nevu-UI application")

# Create a style with some visual parameters
style = ui.Style(border_radius = 20, colortheme = ui.ColorThemeLibrary.material3_dark)

# Create the main menu
menu = ui.Menu(window, size = ui.fill_all, style = style,
    # Create a 3x3 grid
    main_layout = ui.Grid(
        {
            (2, 2): ui.Button( # Create a button in cell 2, 2 (counting from 1)
                text = "Click me!",
                function = lambda: print("You clicked!"),
                size = (50 % ui.fill, 20 % ui.fill),
                style = style
            )
        },
        size = ui.fill_all,
        row = 3,
        column = 3
    )
)

if __name__ == "__main__":
    app = ui.Manager(window, [menu])
    app.run() # Run the main loop

Imperative approach

import pygame

# Import nevu-ui
import nevu_ui as ui

pygame.init()

# Create the main application window
window = ui.Window(size = (400, 300), title = "Nevu-UI application")

# Create a style with some visual parameters
style = ui.Style(
    border_radius = 20,
    colortheme = ui.ColorThemeLibrary.material3_dark
)

# Create the initial container
menu = ui.Menu(window, size = (100 % ui.vw, 100 % ui.vh), style = style)

# Create a 3x3 grid
grid = ui.Grid(size = ui.fill_all, row = 3, column = 3)

button = ui.Button(
    text = "Click me!",
    function = lambda: print("You clicked!"),
    size = (50 % ui.fill, 20 % ui.fill),
    style = style
)

# Add the widget to the cell at coordinates 2, 2 (counting from 1)
grid.add_item(button, x = 2, y = 2)

# Pass the grid to the menu
menu.main_layout = grid

if __name__ == "__main__":
    while True:
        events = pygame.event.get()

        # Update the window
        window.update(events)

        # Update and draw the menu
        menu.update()
        menu.draw()

        pygame.display.update()

Example Result:

Example1


Style banner


Declarativeness

  • Interface creation:
    # The layout's content can be specified directly when creating it
    my_grid = Grid({(1, 1): Button(...)}, ...)
    
    # The layout can be specified right when creating the menu
    menu_1 = Menu(..., main_layout = my_grid)
    
    # You can set up the draw loop in 2 lines
    app = Manager(window, [menu_1])
    app.run()
    
  • Size system: Allows using relative values to specify an object's initial height/width instead of pixels. Usage example:
    from nevu_ui import vw, fill
    Widget(size = (30*vw, 50*fill))
    
    you can also use %
    from nevu_ui import vw, fill
    Widget(size = (30%vw, 50%fill))
    
    Types of sizes:
    • vh / vw: Percentage of the window's height/width.
    • fillx / filly / fill: Percentage of the parent layout's height/width/size.
    • gc / gcw / gch: Percentage of the grid cell's size.
    • Prefix c: can be placed at the start of any value except auto (for example, cvh); it means the current size of the window/layout will be used, while without the prefix the original size is used.
    • auto: automatic sizing based on content.

Animations:

25+ different animations

  • 2 animation modes:
    • Start: runs once after the animation has loaded.
      widget.animation_manager.add_start_animation(...)
    • Continuous: runs infinitely and in a loop.
      widget.animation_manager.add_continuous_animation(...)
  • 4 kinds of animations:
    1. Vector2Animation: a vector animation
      Example: from (0, 0) to (10, 10)
    2. FloatAnimation: a numeric animation
      Example: from 10 to 5.5
    3. ColorAnimation: a color animation
      Example: from (255, 255, 200) to (0, 0, 0)
    4. QueueAnimation: a compound animation
      Example: from animation1 to animation2, and from animation2 to animation3

Style banner


Dependencies:

Python >= 3.12

  • For Building:
    • setuptools
    • Cython
    • numpy
  • For Running:
    • numpy
  • Additional libraries:
    • pygame-ce
    • raylib
    • pyyaml

Installation via pip

pip install nevu-ui[all]

Style banner


List of available elements

Layouts

  • Grid
  • Row
  • Column
  • Scroll
  • HScroll
  • VScroll
  • Stack
  • HStack
  • VStack
  • Flex
  • HFlex
  • VFlex
  • CheckBoxGroup

Widgets

  • Widget
  • Button
  • Label
  • Input
  • EmptyWidget
  • Tooltip
  • ProgressBar
  • SliderBar
  • ElementSwitcher
  • RectCheckBox
  • Switch

Available Backends

  • Pygame-ce
  • RayLib

Backend Exclusives

  • Ripple effect on click — Raylib exclusive

Style banner


Nevu UI is distributed under the MIT license


Style banner


Nevu UI may contain bugs, as it is still in beta version.

If you find a bug, please report it in Issues


Style banner


Gmail: bebrovgolem@gmail.com

Creator: GolemBebrov / ГолемБебров

Metadata

Release files for nevu-ui 0.9.1

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

Built distributions (wheels)

Table of built distributions (wheels) for nevu-ui 0.9.1
File Actions
nevu_ui-0.9.1-cp315-cp315t-win_amd64.whl CPython 3.15 CPython 3.15 free-threading Windows x86-64 Details for nevu_ui-0.9.1-cp315-cp315t-win_amd64.whl
nevu_ui-0.9.1-cp315-cp315t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.15 CPython 3.15 free-threading Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for nevu_ui-0.9.1-cp315-cp315t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
nevu_ui-0.9.1-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details for nevu_ui-0.9.1-cp315-cp315-win_amd64.whl
nevu_ui-0.9.1-cp315-cp315-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.15 CPython 3.15 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for nevu_ui-0.9.1-cp315-cp315-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
nevu_ui-0.9.1-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details for nevu_ui-0.9.1-cp314-cp314t-win_amd64.whl
nevu_ui-0.9.1-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for nevu_ui-0.9.1-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
nevu_ui-0.9.1-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for nevu_ui-0.9.1-cp314-cp314-win_amd64.whl
nevu_ui-0.9.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for nevu_ui-0.9.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
nevu_ui-0.9.1-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for nevu_ui-0.9.1-cp313-cp313-win_amd64.whl
nevu_ui-0.9.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for nevu_ui-0.9.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
nevu_ui-0.9.1-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for nevu_ui-0.9.1-cp312-cp312-win_amd64.whl
nevu_ui-0.9.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for nevu_ui-0.9.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Total release size: 57.4 MB

Release files / nevu_ui-0.9.1-cp315-cp315t-win_amd64.whl

Download URL nevu_ui-0.9.1-cp315-cp315t-win_amd64.whl
Size 2.1 MB
Tags CPython 3.15 CPython 3.15 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
ef71411c5958da7fcf23cb8d45fd80bca33f46bb470478fcb9bb02c06f22dfef
BLAKE2b-256 checksum
How to use checksums
0e83e66d51711bf527a412680f700f7815c7bd5aad22449d5a1ef87c17dea935
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / nevu_ui-0.9.1-cp315-cp315t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL nevu_ui-0.9.1-cp315-cp315t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 7.6 MB
Tags CPython 3.15 CPython 3.15 free-threading Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
b0b4b5f8a3f8e2e3c95365eb57885673d2d025dcf11ff418d21080e0b4dc0983
BLAKE2b-256 checksum
How to use checksums
15d0682d1b13270ee12875c1d87150ee6f71eab38ebbc092f4d268a0e0aeaa91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / nevu_ui-0.9.1-cp315-cp315-win_amd64.whl

Download URL nevu_ui-0.9.1-cp315-cp315-win_amd64.whl
Size 2.1 MB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
cd670a320043642f294ed8574328e2fe45652599aeed6140979d37ea8b50d1a2
BLAKE2b-256 checksum
How to use checksums
f5f807a2d63ff71b76631a4271f8403af5ca5e4d545b40d478b13ca0f553c5ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / nevu_ui-0.9.1-cp315-cp315-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL nevu_ui-0.9.1-cp315-cp315-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 7.3 MB
Tags CPython 3.15 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
b0a011d4f8842a9575502e1c51f343bc9cbd4d00b65bf0567319a80bbe08d1c3
BLAKE2b-256 checksum
How to use checksums
810745ccd02c118fb6552f39db99afaabffd586dce20662d561bcd2c9df8c333
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / nevu_ui-0.9.1-cp314-cp314t-win_amd64.whl

Download URL nevu_ui-0.9.1-cp314-cp314t-win_amd64.whl
Size 2.2 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
766c4066503c53d693ccb8b5f4d5dbeba56bcc1278def71bd48837c75f61e85e
BLAKE2b-256 checksum
How to use checksums
5a420d8ae2be7ad833ebfa58cab167cd51228b6825d72f5b22cce99fdb64683d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / nevu_ui-0.9.1-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL nevu_ui-0.9.1-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 7.7 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
08fe1740f66aa8342b06d24166e1a42d50bd3d7eccb9a4174ddc8995a478bca9
BLAKE2b-256 checksum
How to use checksums
4e11cb745342aa3c8ca4f0eefbba04406e361758e3ff629e5976574bf31901ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / nevu_ui-0.9.1-cp314-cp314-win_amd64.whl

Download URL nevu_ui-0.9.1-cp314-cp314-win_amd64.whl
Size 2.1 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
2d741ff590d63e15c755989ba6ee799f4b403a2e9805af9b1dae6b81b3e6499a
BLAKE2b-256 checksum
How to use checksums
7fb1438063851291fc8ce0623958ff3b64f6e6e4c5cd702212f691c31969ed15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / nevu_ui-0.9.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL nevu_ui-0.9.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 7.4 MB
Tags CPython 3.14 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
238860e080737db7c342ef4eb49af52340614ee514b0ad98551faa7451a8bad4
BLAKE2b-256 checksum
How to use checksums
967827497b4fbc72de4f389738527a3cc40e51a3e36fb1de1202773f0fa29346
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / nevu_ui-0.9.1-cp313-cp313-win_amd64.whl

Download URL nevu_ui-0.9.1-cp313-cp313-win_amd64.whl
Size 2.0 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
fecda5fe885c272aad62b6235730f6333da041639cfe28858586f8a38b45d8d2
BLAKE2b-256 checksum
How to use checksums
f8c37f6d5122211623516b1f9d8e9a6f32f968611e1d1714c08c2bdba9fbd20b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / nevu_ui-0.9.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL nevu_ui-0.9.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 7.4 MB
Tags CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
dbf05324d27a6c43cd3124b87969ff596236e1541316ff5363f2db26d7a2b970
BLAKE2b-256 checksum
How to use checksums
9fd66a4403d2ed293d5d5d913f0aa7921208c2cf94a2fc91145f9d2449be9317
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / nevu_ui-0.9.1-cp312-cp312-win_amd64.whl

Download URL nevu_ui-0.9.1-cp312-cp312-win_amd64.whl
Size 2.0 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
9d893c2a21722e868451d50aa7266ff03550d296fbe9d84c573bb2656df9f44f
BLAKE2b-256 checksum
How to use checksums
f9f2da052ac6cbb3bc73d9e01fc5499f23a7d92eb2f3bb0b89667f964d3869d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / nevu_ui-0.9.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL nevu_ui-0.9.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 7.5 MB
Tags CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
d54de4467b4a5ab64c900c938c21efa47d809100495191c200e9d1625b5c3a9d
BLAKE2b-256 checksum
How to use checksums
91419071f058e22aed4ebf71a06188b4eb4fb533c3cf29973705ead46a10dee7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Security for nevu-ui 0.9.1

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.

Full provenance

All 12 files in this release have been uploaded with provenance metadata.

Select from 12 files

Attestation for nevu_ui-0.9.1-cp315-cp315t-win_amd64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.9.1 This release

12 release files Full provenance

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