Compare commits

...

2 Commits

Author SHA1 Message Date
91feccc509 default bps to 256000 (same as VBAN-Text-Client SDK example) see https://github.com/vburel2018/VBAN-Text-Client
patch bump
2025-01-25 02:06:42 +00:00
c9c365ac54 rename test poe scripts
add passenv = * to [testenv]
2025-01-25 02:00:54 +00:00
6 changed files with 23 additions and 17 deletions

View File

@ -11,6 +11,15 @@ Before any major/minor/patch bump all unit tests will be run to verify they pass
- [x]
## [2.5.2] - 2025-01-25
### Changed
- ip kwargs defaults to 'localhost'
- bps kwarg defaults to 256000.
- factory builder steps now logged at `DEBUG` level.
- Internal socket changes, they don't affect interface usage.
## [2.4.9] - 2023-08-13
### Added

View File

@ -485,6 +485,8 @@ You may pass the following optional keyword arguments:
- `ip`: str='localhost', ip or hostname of remote machine
- `port`: int=6980, vban udp port of remote machine.
- `streamname`: str='Command1', name of the stream to connect to.
- `bps`: int=256000, bps rate of the stream.
- `channel`: int=0, channel on which to send the UDP requests.
- `pdirty`: boolean=False, parameter updates
- `ldirty`: boolean=False, level updates
- `timeout`: int=5, amount of time (seconds) to wait for an incoming RT data packet (parameter states).

View File

@ -1,6 +1,6 @@
[project]
name = "vban-cmd"
version = "2.5.1"
version = "2.5.2"
description = "Python interface for the VBAN RT Packet Service (Sendtext)"
authors = [
{name = "Onyx and Iris",email = "code@onyxandiris.online"}
@ -30,10 +30,10 @@ build-backend = "poetry.core.masonry.api"
gui.script = "scripts:ex_gui"
obs.script = "scripts:ex_obs"
observer.script = "scripts:ex_observer"
basic.script = "scripts:test_basic"
banana.script = "scripts:test_banana"
potato.script = "scripts:test_potato"
all.script = "scripts:test_all"
test_basic.script = "scripts:test_basic"
test_banana.script = "scripts:test_banana"
test_potato.script = "scripts:test_potato"
test_all.script = "scripts:test_all"
[tool.tox]
legacy_tox_ini = """
@ -41,6 +41,7 @@ legacy_tox_ini = """
envlist = py310,py311,py312
[testenv]
passenv = *
setenv = VIRTUALENV_DISCOVERY=pyenv
allowlist_externals = poetry
commands =

View File

@ -19,18 +19,15 @@ def ex_observer():
def test_basic():
os.environ['KIND'] = 'basic'
subprocess.run(['tox'])
subprocess.run(['tox'], env=os.environ.copy() | {'KIND': 'basic'})
def test_banana():
os.environ['KIND'] = 'banana'
subprocess.run(['tox'])
subprocess.run(['tox'], env=os.environ.copy() | {'KIND': 'banana'})
def test_potato():
os.environ['KIND'] = 'potato'
subprocess.run(['tox'])
subprocess.run(['tox'], env=os.environ.copy() | {'KIND': 'potato'})
def test_all():

View File

@ -7,16 +7,13 @@ import vban_cmd
from vban_cmd.kinds import KindId
from vban_cmd.kinds import request_kind_map as kindmap
# get KIND_ID from env var, otherwise set to random
KIND_ID = os.environ.get(
'KIND', random.choice(tuple(kind_id.name.lower() for kind_id in KindId))
)
# get KIND from environment, if not set default to potato
KIND_ID = os.environ.get('KIND', 'potato')
opts = {
'ip': 'localhost',
'streamname': 'onyx',
'port': 6980,
'bps': 0,
}
vban = vban_cmd.api(KIND_ID, **opts)

View File

@ -81,7 +81,7 @@ class FactoryBase(VbanCmd):
'ip': 'localhost',
'port': 6980,
'streamname': 'Command1',
'bps': 0,
'bps': 256000,
'channel': 0,
'ratelimit': 0.01,
'timeout': 5,