semvec/pypi-packages huggingface dataset:
wry-py 0.2.3
Python bindings for Wry
License: MIT
Requires Python: >=3.8

# Wry Py

Python bindings for [Wry](https://github.com/tauri-apps/wry) for building desktop apps with webviews.

## Install

```bash
pip install wry_py
```

Linux needs GTK/WebKitGTK:

```bash
# Debian/Ubuntu
sudo apt install libgtk-3-dev libwebkit2gtk-4.1-dev

# Arch
sudo pacman -S gtk3 webkit2gtk-4.1
```

## Quick Start

```python
from wry_py import UiWindow, div, text, button

count = 0

def increment():
    global count
    count += 1
    render()

def render():
    root = (
        div()
        .size_full()
        .v_flex()
        .items_center()
        .justify_center()
        .gap(20)
        .child_builder(text(f"Count: {count}").text_size(32))
        .child_builder(
            button("Increment")
            .padding(10, 20)
            .bg("#3b82f6")
            .text_color("#fff")
            .on_click(increment)
        )
        .build()
    )
    window.set_root(root)

window = UiWindow(title="Counter", width=400, height=300)
render()
window.run()
```

## Local assets

If your webview blocks `file://` access, register binary assets (images, fonts)
from Python using `AssetCatalog` and reference them with the `asset:` prefix
when creating an image. This embeds the bytes as `data:` URIs so the webview
can load them without filesystem permissions.

```python
from wry_py import AssetCatalog, image

catalog = AssetCatalog()
with open("examples/local_image/assets/logo.png", "rb") as f:
    catalog.add("logo.png", f.read())

image("asset:logo.png").width(120).height(120)
```

## Examples

```bash
# Counter
python -m examples.counter

# Todo list with dialogs
python -m examples.todo_list

# Hover, focus, and transitions
python -m examples.styles

# Partial updates (efficient UI updates)
python -m examples.partial_update

# Multi-step form with all form elements
python -m examples.form_demo
```

## Development

```bash
git clone https://github.com/Jacob-Walton/wry_py.git
cd wry_py
pip install maturin
maturin develop --release
```

## Docs

<https://jacob-walton.github.io/wry_py/>

## License

MIT
docker-tui 0.1.7
A console user interface for docker
License: MIT
Requires Python: >=3.10

﻿# Docker TUI

Yet another console user interface for docker,
inspired by [k9s](https://github.com/derailed/k9s),
and based on [Textual](https://github.com/Textualize/textual).

<img src="https://raw.githubusercontent.com/asafc64/DockerTUI/refs/heads/master/assets/containers_list.png"/>

<div align="center">
    <img width="45%" src="https://raw.githubusercontent.com/asafc64/DockerTUI/refs/heads/master/assets/container_bottom_preview.png"/>
    <img width="45%" src="https://raw.githubusercontent.com/asafc64/DockerTUI/refs/heads/master/assets/container_side_preview.png"/>
</div>

## Features

### Global Navigation

- **Quick search and navigation**</br>
  Jump to any view or resource in the application using keyboard-based navigation.

- **Type-to-select lists**</br>
  All lists support incremental type-to-select (similar to file browsers), allowing quick navigation by typing an item’s
  name.

### Containers

- **Container list view**</br>
  Displays containers grouped by project, showing relevant information such as status, image, CPU usage, and memory
  usage.

- **Container logs view**</br>
  Displays logs at the project level, allowing multiple container logs to be viewed simultaneously.

- **Container files view**</br>
  Presents a filesystem view similar to ls, showing added, modified, and deleted files, with clear indication of mounted
  volumes. Supports editing text files, and deleting files and folders.

- **Container details and stats view**</br>
  Combines container configuration details with runtime statistics, including CPU and memory usage.

- **Execute commands (exec)**</br>
  Run commands or open an interactive shell inside a running container.

- **Lifecycle actions**</br>
  Stop, restart, or delete containers directly from the interface.

### Images

- **Image list view**</br>
  Lists all local Docker images along with relevant metadata.

- **Image deletion**</br>
  Remove unused or unwanted images.

- **Image pull wizard**</br>
  Pull images using a guided, interactive workflow for selecting repositories and tags.

## 2-Steps to get it running

Install:

```bash
pip install docker-tui
```

Run:

```bash
dtui
```