Metadata-Version: 2.4
Name: ubo-app-raw-bindings
Version: 1.4.1.dev4025070210351515052
Summary: Raw bindings for UBO App.
Author-email: Sassan Haradji <me@sassanh.com>
Maintainer-email: Sassan Haradji <me@sassanh.com>
License-Expression: Apache-2.0
Keywords: bindings,grpc,home assistance,python,raspberry pi,rpi,ubo,ubo-pod
Requires-Python: <3.12,>=3.11
Requires-Dist: betterproto[compiler]>=2.0.0b7
Description-Content-Type: text/markdown

# Ubo App Python Bindings

This repository contains Python bindings for the Ubo App, allowing developers to interact with the Ubo App's functionality using Python over gRPC.

## Sample Usage

```python
import asyncio

from ubo_bindings.client import AsyncRemoteStore
from ubo_bindings.ubo.v1 import Action, Notification, NotificationsAddAction

loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)


async def main():
    client = AsyncRemoteStore("localhost", 50051)

    action = Action(
        notifications_add_action=NotificationsAddAction(
            notification=Notification(
                title="Test Notification",
                content="This is a test notification.",
            ),
        ),
    )

    await client.dispatch_async(action=action)
    client.channel.close()


loop.run_until_complete(main())
```
