summaryrefslogtreecommitdiff
path: root/contrib/python/podman/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/python/podman/__init__.py')
-rw-r--r--contrib/python/podman/__init__.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/python/podman/__init__.py b/contrib/python/podman/__init__.py
new file mode 100644
index 000000000..5a0356311
--- /dev/null
+++ b/contrib/python/podman/__init__.py
@@ -0,0 +1,22 @@
+"""A client for communicating with a Podman server."""
+import pkg_resources
+
+from .client import Client
+from .libs import datetime_format, datetime_parse
+from .libs.errors import (ContainerNotFound, ErrorOccurred, ImageNotFound,
+ RuntimeError)
+
+try:
+ __version__ = pkg_resources.get_distribution('podman').version
+except Exception:
+ __version__ = '0.0.0'
+
+__all__ = [
+ 'Client',
+ 'ContainerNotFound',
+ 'datetime_format',
+ 'datetime_parse',
+ 'ErrorOccurred',
+ 'ImageNotFound',
+ 'RuntimeError',
+]