mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2025-04-01 19:33:51 +01:00
Compare commits
2 Commits
1742ff839e
...
91feccc509
Author | SHA1 | Date | |
---|---|---|---|
91feccc509 | |||
c9c365ac54 |
@ -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
|
||||
|
@ -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).
|
||||
|
@ -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 =
|
||||
|
@ -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():
|
||||
|
@ -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)
|
||||
|
@ -81,7 +81,7 @@ class FactoryBase(VbanCmd):
|
||||
'ip': 'localhost',
|
||||
'port': 6980,
|
||||
'streamname': 'Command1',
|
||||
'bps': 0,
|
||||
'bps': 256000,
|
||||
'channel': 0,
|
||||
'ratelimit': 0.01,
|
||||
'timeout': 5,
|
||||
|
Loading…
x
Reference in New Issue
Block a user