From 5703105980ef0ac8cbfe9a4ded0c441d87b04b8c Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Thu, 16 Jun 2022 16:45:08 +0100 Subject: [PATCH] add opts add opts to example in readme and __main__ --- README.md | 8 ++++++-- __main__.py | 8 ++++++-- pyproject.toml | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d7963e2..37368fc 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ class ManyThings: def main(): - with vban_cmd.api(kind_id) as vban: + with vban_cmd.api(kind_id, **opts) as vban: do = ManyThings(vban) do.things() do.other_things() @@ -86,7 +86,11 @@ def main(): if __name__ == "__main__": kind_id = "banana" - ip = "" + opts = { + "ip": "", + "streamname": "Command1", + "port": 6980, + } main() ``` diff --git a/__main__.py b/__main__.py index 275527b..ba83a3b 100644 --- a/__main__.py +++ b/__main__.py @@ -23,7 +23,7 @@ class ManyThings: def main(): - with vban_cmd.api(kind_id) as vban: + with vban_cmd.api(kind_id, **opts) as vban: do = ManyThings(vban) do.things() do.other_things() @@ -42,6 +42,10 @@ def main(): if __name__ == "__main__": kind_id = "banana" - ip = "" + opts = { + "ip": "", + "streamname": "Command1", + "port": 6980, + } main() diff --git a/pyproject.toml b/pyproject.toml index 800064b..8cadfc0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "vban-cmd" -version = "1.0.1" +version = "1.0.3" description = "Python interface for the VBAN RT Packet Service (Sendtext)" authors = ["onyx-and-iris "] license = "MIT"