Commit Graph

1421 Commits

Author SHA1 Message Date
e97aab4f36 client: adds hostname of the client as client_id default 2025-05-22 16:07:52 +02:00
9827d0747c Merge pull request #233 from tiqi-group/fix/task_event_loop
fix: task event loop
2025-05-22 16:01:29 +02:00
38a12fb72e fix: current_event_loop_exists should get the event loop which might not be running yet 2025-05-22 15:57:35 +02:00
fb6ec16bf5 server: set event loop before initialising the state manager
As the server is run first, we don't have to check if any other event
loop is running.
2025-05-22 15:57:09 +02:00
9ee498eb5c Merge pull request #232 from tiqi-group/fix/nested-attribute-notification
fix: properly checking is attribute is nested
2025-05-22 15:37:02 +02:00
d015333123 tests: property starting with dependency name 2025-05-22 15:34:42 +02:00
c4e7fe66a8 fix: properly checking is attribute is nested
Properties whose names start with a dependency's name (e.g., my_int ->
my_int_2) were incorrectly skipped during change notification. This
fixes it by checking if the changing properties start with the
full_access_path start followed by either "." or "[".
2025-05-22 15:34:09 +02:00
5f1451a1c1 Merge pull request #231 from tiqi-group/fix/property_dependency_function_argument
Fix: property dependency function argument
2025-05-22 15:15:23 +02:00
4c28cbaf7d tests: updates tests s.t. timezones don't matter 2025-05-22 15:07:10 +02:00
a97b8eb2b4 fix: exclude ( from regex, as well 2025-05-22 15:06:30 +02:00
f6b5c1b567 tests: property dependency as function argument 2025-05-22 14:51:33 +02:00
f92d525588 fix: fixes regex pattern to get property dependencies 2025-05-22 14:50:29 +02:00
61b69d77cc Merge pull request #229 from tiqi-group/release-v0.10.14
updates to version 0.10.14
v0.10.14
2025-05-21 09:51:38 +02:00
8abe9357cf updates to version 0.10.14 2025-05-21 09:51:17 +02:00
0dace2a9f0 Merge pull request #228 from tiqi-group/fix/aiohttp_socks_dependency
fix: using client without aiohttp_socks dependency does not raise
2025-05-21 09:49:29 +02:00
9992ade0ed chore: formatting 2025-05-21 09:48:11 +02:00
6c2cebada2 fix: using client without aiohttp_socks dependency does not raise
When not specifying the proxy_url in `pydase.Client`, the aiohttp_socks
dependency is not required. This is now handled by putting the import
into the correct place, adding a descriptive log message when the import
fails.
2025-05-21 09:46:20 +02:00
069a2b4696 Merge pull request #227 from tiqi-group/release-v0.10.13
updates to version 0.10.13
v0.10.13
2025-05-20 20:46:13 +02:00
38ed8d78de updates to version 0.10.13 2025-05-20 20:45:53 +02:00
7ff6cab9b3 Merge pull request #226 from tiqi-group/feat/proxy_support
Feat: add SOCKS5 proxy support to pydase.Client
2025-05-20 20:44:24 +02:00
cbd93fb166 fixes client initialisation 2025-05-20 20:43:16 +02:00
83c30439b6 docs: adds SOCKS5 proxy section 2025-05-20 20:43:16 +02:00
e596c50915 fix: updates python-package workflow
Adds --all-extras flag to `poetry sync` command to install aiohttp_socks
dependency.
2025-05-20 20:43:16 +02:00
9920350753 refactoring: moving initialisation of socketio client into separate function 2025-05-20 20:43:16 +02:00
5dec01d800 adds aiohttp-socks as optional dependency 2025-05-20 15:52:32 +02:00
18c66a8318 feat: adds support for services behind a SOCKS5 proxy 2025-05-20 15:48:49 +02:00
3d65240784 Merge pull request #225 from tiqi-group/chore/update_pyproject_toml
Chore: update pyproject toml
2025-05-20 15:44:13 +02:00
0d698e803d reducing test duration 2025-05-20 15:38:28 +02:00
02a8791b74 ruff: fix TC001 (move into type-checking block) 2025-05-20 15:38:28 +02:00
35f658ce4d chore: formatting 2025-05-20 15:38:28 +02:00
051e616280 fixes PYI063 errors (ruff) 2025-05-20 15:38:28 +02:00
98e9791d09 suppresses KeyError when removing key from observable dict mapping
This error is thrown in some test cases when some object gets deleted
but it's not within the dict mapping for some reason.
2025-05-20 15:38:28 +02:00
24ecbd1eb9 tests: fixes test_version 2025-05-20 15:38:28 +02:00
cd78d01b04 updates pyproject.toml and poetry.lock 2025-05-20 15:38:28 +02:00
6be27217cf Merge pull request #224 from tiqi-group/fix/loop-cleanup
chore: properly closing event loops in client and server
2025-05-20 15:37:57 +02:00
ae2c99b3ae add pytest configuration
Ignores certain warnings I cannot control
2025-05-20 15:34:40 +02:00
c32b6a8694 tests: proper handling of event loops
Event loops have to be closed properly, otherwise pytest will throw a
warning / error. Disconnecting clients and closing the server is
important for that, as well as stopping tasks.
Additionally, I had to add loop_scope parameters to share the event loop
throughout modules which all use the same pydase.Server instance.
2025-05-20 15:25:58 +02:00
57cfe45c76 introduces check if current event loop is closed
This introduces a check for if the event loop is actually closed
already.
2025-05-20 15:24:54 +02:00
7c18d86e9c properly closing event loops in client and server 2025-05-20 15:12:48 +02:00
c5eb5f80b4 Merge pull request #223 from tiqi-group/refactor/client-lifecycle
client: allow reconnecting by moving loop and thread initialization out of constructor
2025-05-20 15:11:50 +02:00
18c64db826 client: allow reconnecting by moving loop and thread initialization out of constructor
- Refactored Client to delay event loop and thread creation until
connect() is called.
- Introduced _initialize_loop_and_thread() helper for consistent
loop/thread/proxy setup.
- Updated disconnect() to stop the loop and join the thread without
closing the loop immediately. This allows proper cleanup and supports
reconnecting a client instance after disconnection.
- Fixes issues with restarting closed event loops and improves lifecycle
control in testing and production.
2025-05-20 15:07:15 +02:00
27f8e1b1bc Merge pull request #222 from tiqi-group/fix/mkdocs_config_file
fix: update mkdocs.yml
2025-05-19 15:12:17 +02:00
f8839f0e71 fix: update mkdocs.yml 2025-05-19 15:10:29 +02:00
d31aff0b9b Merge pull request #221 from tiqi-group/docs/restructuring
Docs: restructuring
2025-05-19 15:07:49 +02:00
2c1db3fa45 docs: restructuring Interaction section in User Guide 2025-05-19 15:01:35 +02:00
b9cec19b02 docs: updating and adding links 2025-05-19 15:00:45 +02:00
6ba5193e9e docs: remove commented-out information 2025-05-19 15:00:45 +02:00
bc0c69f9e1 Merge pull request #220 from tiqi-group/release-v0.10.12
updates to version v0.10.12
v0.10.12
2025-05-09 11:01:20 +02:00
b2314f7e33 updates to version v0.10.12 2025-05-09 10:58:37 +02:00
eb43e7b380 Merge pull request #219 from tiqi-group/feat/improve-input-cursor-handling
Feat: improve input cursor handling
2025-05-09 10:56:50 +02:00