summaryrefslogtreecommitdiff
path: root/varlink_client.py
diff options
context:
space:
mode:
Diffstat (limited to 'varlink_client.py')
-rw-r--r--varlink_client.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/varlink_client.py b/varlink_client.py
new file mode 100644
index 000000000..7446e3012
--- /dev/null
+++ b/varlink_client.py
@@ -0,0 +1,9 @@
+from varlink import (Client, VarlinkError)
+import json
+
+address = "unix:/run/podman/io.projectatomic.podman"
+
+with Client(address=address) as client:
+ podman = client.open('io.projectatomic.podman')
+ response = podman.GetVersion()
+ print(json.dumps(response, indent=4, separators=(',', ': '))) \ No newline at end of file