aboutsummaryrefslogtreecommitdiff
path: root/examples/get_interface.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/get_interface.py')
-rw-r--r--examples/get_interface.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/get_interface.py b/examples/get_interface.py
new file mode 100644
index 0000000..797ce85
--- /dev/null
+++ b/examples/get_interface.py
@@ -0,0 +1,9 @@
+from pymba import Vimba, VimbaException
+
+
+if __name__ == '__main__':
+
+ with Vimba() as vmb:
+ # provide interface index or id
+ interface = vmb.interface(0)
+ print(interface)