Commit Graph

1469 Commits

Author SHA1 Message Date
Mose Müller
661603ef71 Merge pull request #252 from tiqi-group/alert-autofix-4
Potential fix for code scanning alert no. 4: Workflow does not contain permissions
2025-06-27 08:56:48 +02:00
Mose Müller
d6947b0f43 Potential fix for code scanning alert no. 4: Workflow does not contain permissions
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-06-27 08:54:57 +02:00
Mose Müller
93d38651e8 Merge pull request #251 from tiqi-group/release-v0.10.18
updates to version v0.10.18
v0.10.18
2025-06-27 08:48:25 +02:00
Mose Müller
72a3c199d9 updates to version v0.10.18 2025-06-27 08:48:07 +02:00
Mose Müller
7914e2fa7b Merge pull request #250 from tiqi-group/feat/client_auto_update_proxy
feat: adds auto_update_proxy argument to pydase.Client
2025-06-27 08:44:35 +02:00
Mose Müller
0a4f898fde docs: updates python client section 2025-06-27 08:43:36 +02:00
Mose Müller
a9aa55fc99 client: adds auto_update_proxy argument
If False, this disables automatic updates from the server by not
subscribing to the "nofity" event. This is useful for request-only where
real-time synchronization is not needed.
2025-06-27 08:02:33 +02:00
Mose Müller
fd5a230fa4 Merge pull request #249 from tiqi-group/feat/improve-client-proxy-serialization
chore: improve client proxy serialization
2025-06-23 14:11:31 +02:00
Mose Müller
243b46aadb test: adds test for ProxyClass
This test timed out before implementing the changes.
2025-06-23 14:09:52 +02:00
Mose Müller
0f1ca84df5 client: updates proxy.serialize logic
The proxy needs to properly handle serialization requests. If such a
requests comes from the asyncio loop used by the socketio client, this
would result in a deadlock. This happens, for example, when the observer
is notified of a change triggered within a socketio event. To prevent
this, I am checking the current loop against the socketio client loop.
If it's the same, return the _service_representation value, which is set
when pydase.Client connects to the server. I do the same when the client
is not connected (to prevent BadNamespaceErrors).
Every other invokation of serialize results in an API call to the
server.
2025-06-23 09:11:43 +02:00
Mose Müller
6438a07305 client: updates proxy._service_representation every time the client connects 2025-06-23 09:01:01 +02:00
Mose Müller
80bfd209df Merge pull request #248 from tiqi-group/docs/adds_doi_badge
docs: adds DOI badge
2025-06-20 10:46:48 +02:00
Mose Müller
e065b1fb22 docs: adds DOI badge 2025-06-20 10:45:01 +02:00
Mose Müller
977cee32b9 Merge pull request #247 from tiqi-group/feat/adding-direct-api-access-tests
feat: adds client tests for direct api functions
2025-06-19 14:04:30 +02:00
Mose Müller
96f695020b adds client tests for direct api functions 2025-06-19 14:03:34 +02:00
Mose Müller
33ce01865a Merge pull request #246 from tiqi-group/feat/direct-api-access-client
Feat: direct api access client
2025-06-19 13:57:25 +02:00
Mose Müller
f5374573cd docs: adds "Direct API Access" section to python-client.md 2025-06-19 13:54:52 +02:00
Mose Müller
43c6b5e817 fix: getter_proxy didn't return value 2025-06-19 13:52:31 +02:00
Mose Müller
37380c6d24 adds get_value, update_value and trigger_method functions to pydase.Client 2025-06-19 13:45:36 +02:00
Mose Müller
ae21656e83 pulls get_value out of ProxyClassMixin 2025-06-19 13:38:51 +02:00
Mose Müller
a4b4f179c6 Merge pull request #245 from tiqi-group/release-v0.10.17
updates to version v0.10.17
v0.10.17
2025-06-19 10:43:45 +02:00
Mose Müller
c6beca3961 updates to version v0.10.17 2025-06-19 10:43:13 +02:00
Mose Müller
2fa8240e54 Merge pull request #244 from tiqi-group/feat/add_python_3_13_support
feat: official support for python 3.13
2025-06-19 10:42:11 +02:00
Mose Müller
369587a50c adds python 3.13 to checked versions in the github workflow 2025-06-19 10:39:40 +02:00
Mose Müller
25343f6909 Merge pull request #243 from tiqi-group/fix/test_image
fix: pathlib.Path signature annotation change in python 3.13
2025-06-19 10:37:53 +02:00
Mose Müller
c136c9f3de fix: pathlib.Path signature annotation change in python 3.13 2025-06-19 10:35:35 +02:00
Mose Müller
8897c2fe4c Merge pull request #242 from tiqi-group/refactor/web-server-initialisation
Refactor: web server initialisation
2025-06-19 10:26:12 +02:00
Mose Müller
80c5c4e99d fix: check if loop is running 2025-06-19 10:23:25 +02:00
Mose Müller
423441a74c initialise WebServer in pydase.Server constructor
The WebServer can be initialised in the pydase.Server constructor
without any problems. This would allow users to access the socketio
server before starting the pydase.Server.
2025-06-19 10:23:07 +02:00
Mose Müller
9ec60e3891 Merge pull request #241 from tiqi-group/fix/sio_server_warnings
fix: check if loop is running in SocketIOHandler
2025-06-19 10:00:53 +02:00
Mose Müller
8bde104322 fix: check if loop is running in SocketIOHandler
Before emitting sio events in the SocketIOHandler, I have to check if
the loop is actually still running. This caused issues with pytest as
pytest was tearing down asyncio tasks and stopping the loop, while the
sio handler was still trying to send those logs to the sio clients.
2025-06-19 09:59:08 +02:00
Mose Müller
9b57b6984e Merge pull request #240 from tiqi-group/fix/enable-web-argument
Fix: enable web argument handling
2025-06-19 09:53:29 +02:00
Mose Müller
e5b89f2581 always emit exceptions (also when enable_web is false)
replaces enable_web check with loop.is_running()
2025-06-19 09:50:09 +02:00
Mose Müller
ff1654e65c fix: enable_web argument toggles the frontend now
- always initialise the WebServer (also if enable_web is False).
Otherwise, the socketio server will not be initialised
- passing the enable_web argument to the WebServer which is then used to
decide whether to add the frontend routes
2025-06-19 09:43:34 +02:00
Mose Müller
cded80c8e5 Merge pull request #239 from tiqi-group/feat/post-startup-hook
feat: adds post_startup hook to pydase.Server
2025-06-19 09:23:34 +02:00
Mose Müller
87a33b6293 adds post_startup hook to pydase.Server 2025-06-19 09:18:44 +02:00
Mose Müller
6d621daaac Merge pull request #238 from tiqi-group/release-v0.10.16
updates to version v0.10.16
v0.10.16
2025-06-06 13:45:58 +02:00
Mose Müller
8c1a50c106 updates to version v0.10.16 2025-06-06 13:45:27 +02:00
Mose Müller
a1545d341b Merge pull request #237 from tiqi-group/chore/update_npm_packages
Chore: update npm packages
2025-06-06 13:44:04 +02:00
Mose Müller
28a1cc7cd3 Merge pull request #236 from tiqi-group/fix/local_storage_usage
fix: prefix localStorage key with authority id
2025-06-06 13:43:41 +02:00
Mose Müller
c968708b85 npm run build 2025-06-06 13:43:22 +02:00
Mose Müller
fef8606d17 updates vitejs 2025-06-06 13:43:17 +02:00
Mose Müller
82286c8da0 fix: prefix localStorage key with authority id
Prefixing the localStorage key with the authority id fixes an issue that
arises when multiple services are displayed in an iframe on a webpage.
2025-06-06 13:36:48 +02:00
Mose Müller
533826a398 Merge pull request #234 from tiqi-group/release-v0.10.15
updates version to 0.10.15
v0.10.15
2025-05-22 16:42:37 +02:00
Mose Müller
982875dee6 Merge pull request #235 from tiqi-group/feat/adds_client_id_default
feat: adds client id default
2025-05-22 16:16:02 +02:00
Mose Müller
e54710cd4d tests: update client_id test 2025-05-22 16:12:38 +02:00
Mose Müller
f48f7aacfb docs: updates client_id description 2025-05-22 16:10:52 +02:00
Mose Müller
e97aab4f36 client: adds hostname of the client as client_id default 2025-05-22 16:07:52 +02:00
Mose Müller
015c66d5a6 updates version to 0.10.15 2025-05-22 16:03:13 +02:00
Mose Müller
9827d0747c Merge pull request #233 from tiqi-group/fix/task_event_loop
fix: task event loop
2025-05-22 16:01:29 +02:00