sendtext_only kwarg added.

readme, changelog updated.

minor version bump
This commit is contained in:
onyx-and-iris 2023-07-05 02:55:42 +01:00
parent f6d92d1c34
commit 544e0f2a32
5 changed files with 32 additions and 14 deletions

View File

@ -11,6 +11,16 @@ Before any major/minor/patch bump all unit tests will be run to verify they pass
- [x] - [x]
## [2.1.0] - 2023-07-05
### Added
- `sendtext_only` kwarg let's you disable incoming rt packets. Essentially the interface will work only in one direction (out).
This is useful if you are only interested in sending script commands out to voicemeeter but don't need to receive parameter states.
By default sendtext_only is False.
## [2.0.0] - 2023-06-25 ## [2.0.0] - 2023-06-25
This update introduces some breaking changes: This update introduces some breaking changes:

View File

@ -458,8 +458,10 @@ You may pass the following optional keyword arguments:
- `ip`: str, ip or hostname of remote machine - `ip`: str, ip or hostname of remote machine
- `streamname`: str, name of the stream to connect to. - `streamname`: str, name of the stream to connect to.
- `port`: int=6980, vban udp port of remote machine. - `port`: int=6980, vban udp port of remote machine.
- `pdirty`: parameter updates - `pdirty`: boolean=False, parameter updates
- `ldirty`: level updates - `ldirty`: boolean=False, level updates
- `timeout`: int=5, amount of time (seconds) you will wait for subscription response
- `sendtext_only`: boolean=False, set `True` if you are only interested in sending script commands (no rt packets will be received)
#### `vban.pdirty` #### `vban.pdirty`
@ -477,9 +479,13 @@ Sends a script block as a string request, for example:
vban.sendtext("Strip[0].Mute=1;Bus[0].Mono=1") vban.sendtext("Strip[0].Mute=1;Bus[0].Mono=1")
``` ```
note. if you are ONLY interested in sending script commands you may set sendtext_only kwarg to True
#### `vban.public_packet` #### `vban.public_packet`
Returns a `VbanRtPacket`. Designed to be used internally by the interface but available for parsing through this read only property object. States not guaranteed to be current (requires use of dirty parameters to confirm). Returns a `VbanRtPacket`. Designed to be used internally by the interface but available for parsing through this read only property object.
States not guaranteed to be current (requires use of dirty parameters to confirm).
### `Errors` ### `Errors`

View File

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "vban-cmd" name = "vban-cmd"
version = "2.0.0" version = "2.1.0"
description = "Python interface for the VBAN RT Packet Service (Sendtext)" description = "Python interface for the VBAN RT Packet Service (Sendtext)"
authors = ["onyx-and-iris <code@onyxandiris.online>"] authors = ["onyx-and-iris <code@onyxandiris.online>"]
license = "MIT" license = "MIT"

View File

@ -71,6 +71,7 @@ class FactoryBase(VbanCmd):
"channel": 0, "channel": 0,
"ratelimit": 0.01, "ratelimit": 0.01,
"timeout": 5, "timeout": 5,
"sendtext_only": False,
"sync": False, "sync": False,
"pdirty": False, "pdirty": False,
"ldirty": False, "ldirty": False,

View File

@ -85,7 +85,8 @@ class VbanCmd(metaclass=ABCMeta):
return self return self
def login(self): def login(self):
"""Starts the subscriber and updater threads""" """Starts the subscriber and updater threads (unless sendtext_only mode)"""
if not self.sendtext_only:
self.running = True self.running = True
self.event.info() self.event.info()