Commit Graph

106 Commits

Author SHA1 Message Date
c8d0a0078d adds more logging for getters 2023-10-21 18:02:55 +01:00
87a1d62414 ensure we don't try to join a thread that wasn't created
(in the event of a timeout error)
2023-10-21 07:48:09 +01:00
fcb656b7d0 reword docstring 2023-08-19 19:56:17 +01:00
753714b639 should the loader attempt to load an invalid toml config
log as error but allow the loader to continue
2023-08-13 18:16:33 +01:00
27a26b8fe9 remove __str__ override 2023-08-13 18:15:31 +01:00
79260a0e47 check vban direction
check that index is numeric

remove button as possible key.
not defined in RT packets anyway

patch bump
2023-08-10 21:24:59 +01:00
a635109308 make better use of pattern matching features
error test updated
2023-08-10 19:12:52 +01:00
a61e09b075 avoid using key word as variable name 2023-08-10 19:11:59 +01:00
763e44df12 refactor target
add error test for ValueError

test badges updated

patch bump
2023-08-09 17:03:55 +01:00
ca2427c29a lowercase identifiers 2023-08-07 17:38:51 +01:00
ebacdcf82a use _cmd() helper method to build cmd string 2023-08-07 17:38:37 +01:00
bd6e57b3c6 define message attribute for VBANCMD error classes
override str magic method
2023-08-07 16:31:08 +01:00
55211b9b19 replace generator function with factory function 2023-08-05 14:06:39 +01:00
4af7c0f694 initialize stop_event to None
in case outbound mode enabled
2023-08-05 14:05:18 +01:00
f082fa8ac5 reword 2023-08-05 13:40:32 +01:00
cbcca14481 rename until_stopped() to wait_until_stopped() 2023-08-05 13:36:36 +01:00
72d182a488 use Threading.Event object to terminate threads
until_stopped() added to Subscriber thread
2023-08-04 23:13:58 +01:00
ee32f92914 add missing constants
add docstrings that describes data breakdown

move SubscribeHeader above  VbanRtPacketHeader

expand assert failure string
2023-08-04 23:06:51 +01:00
47e9203b1e use walrus 2023-08-04 16:21:57 +01:00
d48e7ecd79 Correct type annotations None type. 2023-08-02 17:19:08 +01:00
7e09a0d321 VBANCMDConnectionError now subclasses VBANCMDError 2023-08-02 15:45:25 +01:00
d41ee1a12a remove redundant __str__ overrides 2023-07-26 11:32:20 +01:00
9bf52b5c11 num_strip_levels, num_bus_levels added to KindMaps 2023-07-25 16:22:47 +01:00
dab519be9f implement midi, text vban streams
kindmaps updated

factory tests updated.

closes #2
2023-07-12 10:24:03 +01:00
a4b91bf5c6 deep_merge implemented
recursively merges dicts in profiles

patch bump
2023-07-12 04:52:50 +01:00
2a98707bf8 Adds ability to extend one config with another
apply_config() checks for 'extends' in TOML config

2.3.0 section added to CHANGELOG

three example extender.toml configs added

minor version bump
2023-07-11 20:27:52 +01:00
04e18b304b log params on successful connection
raise VBANCMDError if invalid config key in apply_config()
2023-07-08 17:25:38 +01:00
4de384c66c repr method added to factory base 2023-07-08 07:59:51 +01:00
2c8659a4e5 apply extended to support button, vban 2023-07-08 07:59:35 +01:00
41e427e46b button and vban classes added
button is a placeholder class, though.
2023-07-08 07:34:30 +01:00
1ad0347478 fixes bug with apply() if called from higher class 2023-07-05 19:20:57 +01:00
2c8e4cc87c rename sendtext_only to outbound
to more accurately describe its purpose.
2023-07-05 14:08:27 +01:00
544e0f2a32 sendtext_only kwarg added.
readme, changelog updated.

minor version bump
2023-07-05 02:55:42 +01:00
0970bfe0b5 revert move data slices
strip_leves, bus_levels properties added to VbanRtPacket
2023-06-25 16:15:32 +01:00
05cbc432b2 Strip.{comp,gate} setters added. 2023-06-25 13:59:08 +01:00
174d95d08d _conn_from_toml filepaths added. 2023-06-25 13:58:19 +01:00
fc324fecc4 run through black 2023-06-25 13:57:24 +01:00
449cb9b3c1 pdirty false by default 2023-06-25 13:53:23 +01:00
cdccc603d1 _cmd() helper method added
apply() extended to handle nested dicts

module level logger added
2023-06-25 13:52:39 +01:00
a8bb9711af added module level logger 2023-06-25 13:51:47 +01:00
5bb0c2731e run through black 2023-06-25 13:51:30 +01:00
372dba0b6b raise VBANCMDError on invalid kind 2023-06-25 13:50:21 +01:00
226fc5ead7 timeout kwarg added.
lets a user decide how long to wait for subscription response

pdirty now defaults to False
2023-06-25 12:21:02 +01:00
9196a4e267 subject class extended to support callbacks 2023-06-25 03:41:10 +01:00
8485992495 use name property, clears deprecation warning 2023-06-25 03:40:36 +01:00
91e49cbb55 tomllib/tomli now lazy loaded.
`Path.home() / "vban.toml" added to filepaths

`Path.home() / ".config" / "vban-cmd" / "vban.toml"` added to filepaths

VBANCMDError raised if ip not given and toml not located
2023-06-25 03:40:14 +01:00
3c85903554 renaem action_prop to action_fn 2023-06-25 02:38:59 +01:00
a730edc2c2 connection errors now raise VBANCMDConnectionError
Producer thread added, sends job queue to Updater

data slices moved back into dataclass
2023-06-25 02:37:45 +01:00
90acafe95b VBANCMDConnectionError added 2023-06-25 02:06:02 +01:00
5f4fdcb0eb StripComp, StripGate, StripDenoiser, StripDevice
added to PhysicalStrip
2023-06-25 01:48:07 +01:00