tiqi-group / pydase

A Python library for creating remote control interfaces of Python objects.
https://pydase.readthedocs.io
MIT License
2 stars 1 forks source link

feat: adds a context manager to the client, fixes running loop issue #152

Closed mosmuell closed 3 months ago

mosmuell commented 3 months ago

Implements a context manager for the pydase client:

import pydase

with pydase.Client(url="ws://localhost:8001) as client:
    client.proxy.<my_method>()

This PR also fixes an issue on the client where the event loop is already running.