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"