Mose Müller
861e89f37a
task: using functools to get correct func name
2024-09-13 11:27:30 +02:00
Mose Müller
c00cf9a6ff
updating property dependencies in PropertyObserver
...
As Task objects have to be class attributes, I have to loop through class attributes, as well
when calculating nested observables properties.
2024-09-13 11:27:30 +02:00
Mose Müller
ed7f3d8509
dont make descriptors attributes of the instance -> would loose functionality
2024-09-13 11:27:30 +02:00
Mose Müller
456090fee9
adds is_descriptor helper method
2024-09-13 11:27:30 +02:00
Mose Müller
e69ef376ae
replaces some code with helper function
2024-09-13 11:27:30 +02:00
Mose Müller
5f78771f66
tasks: need to bind method as soon as instance is passed to __get__
...
I cannot keep a reference to the parent class as the Task class is a DataService, as well.
2024-09-13 11:27:30 +02:00
Mose Müller
09ceae90ec
tasks: only care about async methods right now
2024-09-13 11:27:30 +02:00
Mose Müller
c34351270c
feat: first Task implementation
2024-09-13 11:27:29 +02:00
Mose Müller
743c18bdd7
fix: need to compare with serialized value (for enums)
2024-09-13 11:27:29 +02:00
Mose Müller
ab9b4257f2
adds overwritable sio client_manager
2024-08-28 12:37:56 +02:00
Mose Müller
a2effca2b0
fixes ruff errors
2024-08-20 13:14:03 +02:00
Mose Müller
dbc1fa00f7
adds autogenerated api documentation
2024-08-20 12:03:08 +02:00
Mose Müller
b1f75bb786
makes handle_server_shutdown a protected method
2024-08-20 11:50:27 +02:00
Mose Müller
0011a0f92e
fix: uses logger instead of logging in sio events
2024-08-20 08:30:13 +02:00
Mose Müller
b7ab364aab
adds "testing" operation mode
2024-08-20 08:29:54 +02:00
Mose Müller
6765246231
fixing ruff formatting error
2024-08-19 09:53:54 +02:00
Mose Müller
82d6a7f895
adds a context manager to the client, fixes running loop issue
2024-08-13 07:14:33 +02:00
Mose Müller
42357d7901
breaking: client takes url instead of hostname and port
...
Connecting to secure services (with wss) was not possible.
The user has to provide the whole URL now, which makes it much more flexible and less bug-prone.
2024-08-12 13:15:17 +02:00
Mose Müller
e0d710644b
sio_setup: removes unused function
2024-08-05 05:27:17 +02:00
Mose Müller
9663dea79d
feat: allow monkey patching serilization methods for api endpoints
2024-07-31 08:44:23 +02:00
Mose Müller
bd6220cb9e
chore: refactoring state_manager
2024-07-30 10:17:43 +02:00
Mose Müller
1fb296c3c1
removes read-only check from state manager's set_service_attribute_value_by_path
2024-07-30 10:15:34 +02:00
Mose Müller
bfe2d82c0b
api: getting value from service instead of cache
2024-07-30 09:30:28 +02:00
Mose Müller
5d8471fd47
disallows clients to add class attributes (through the state manager)
...
Note that adding dictionary keys still works. You can also append to lists.
2024-07-30 09:18:22 +02:00
Mose Müller
b148d6919a
StateManager: replaces _data_service_cache with cache_manager
...
- _data_service_cache -> cache_manager
2024-07-30 08:28:37 +02:00
Mose Müller
74ebbc6223
http api: replaces post endpoints with put endpoints
2024-07-30 08:28:37 +02:00
Mose Müller
554d6f7daa
changes http API (reflected in openapi specification)
2024-07-30 08:28:37 +02:00
Mose Müller
95d29ee4e8
return method results over http
2024-07-30 08:28:37 +02:00
Mose Müller
0e73239d08
adds API versioning
2024-07-30 08:28:37 +02:00
Mose Müller
eaf76a7211
fixing logging for aiohttp and SocketIOHandler
2024-07-30 08:28:37 +02:00
Mose Müller
aa55ac772e
using api application as web server api endpoint
2024-07-30 08:28:37 +02:00
Mose Müller
755a303239
creates api definition, using that in sio_setup
2024-07-30 08:28:37 +02:00
Mose Müller
8bf0b771fa
replace deprecated object from pint package
2024-07-30 06:56:59 +02:00
Mose Müller
36d3a7becc
restructure StateManager to allow extending dictionaries through clients
2024-07-29 15:02:47 +02:00
Mose Müller
d54eed8a58
get_object_by_path_parts and get_object_attr_from_path do not catch exceptions any more
2024-07-29 15:02:47 +02:00
Mose Müller
817afc610a
StateManager: replaces _data_service_cache with cache_manager
...
- _data_service_cache -> cache_manager
- removes cache property
- replaces get_nested_dict_by_path with cache_manager.get_value_dict_from_cache where possible
2024-07-29 15:02:47 +02:00
Mose Müller
ad0f9420d9
get_value_dict_from_cache does not catch exceptions any more
2024-07-29 14:59:02 +02:00
Mose Müller
6d786cd0f8
removes unused SerializationValueError exception
2024-07-29 14:59:02 +02:00
Mose Müller
7286017715
removes unused imports
2024-07-25 08:28:33 +02:00
Mose Müller
1a23206f42
adds example to helper function
2024-07-25 08:25:28 +02:00
Mose Müller
fdb17e44e2
replaces fastapi with aiohttp
2024-07-25 08:25:10 +02:00
Mose Müller
fc738e2743
using aiohttp as socketio async_mode
2024-07-25 08:22:12 +02:00
Mose Müller
9de4071120
updates logging to remove uvicorn dependency
2024-07-25 07:48:22 +02:00
Mose Müller
369d0b1126
adds handle for server shutdown, removes uvicorn dependency from server.py
2024-07-25 07:47:59 +02:00
Mose Müller
9d387944ef
npm run build
2024-07-24 14:58:47 +02:00
Mose Müller
c07efe056b
npm run build
2024-07-22 07:05:16 +02:00
Mose Müller
e31af9ae31
moves log_config out of setup_logging method to make it configurable, removes argument from function
2024-07-11 17:04:11 +02:00
Mose Müller
60c671eb0d
configures pydase's logger (not root logger anymore)
2024-07-11 16:53:12 +02:00
Mose Müller
e7f9ad799c
uses loads instead of Deserializer, allows for monkey-patching loads and dump
2024-07-09 16:25:35 +02:00
Mose Müller
cf0780b2ca
adds support for datetime serialization
2024-07-09 15:41:30 +02:00