mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-29 03:37:54 +00:00
* Update varlink document * Add NoContainersInPod error in go and python * Add support for varlink pod interface * New code passes pylint * Fix bug in test_runner.sh * Update integration tests for race condition on status check * Add missing port config file support Signed-off-by: Jhon Honce <jhonce@redhat.com>
29 lines
804 B
Python
29 lines
804 B
Python
"""A client for communicating with a Podman server."""
|
|
import pkg_resources
|
|
|
|
from .client import Client
|
|
from .libs import FoldedString, datetime_format, datetime_parse
|
|
from .libs.errors import (ContainerNotFound, ErrorOccurred, ImageNotFound,
|
|
NoContainerRunning, NoContainersInPod,
|
|
PodContainerError, PodmanError, PodNotFound)
|
|
|
|
assert FoldedString
|
|
|
|
try:
|
|
__version__ = pkg_resources.get_distribution('podman').version
|
|
except Exception: # pylint: disable=broad-except
|
|
__version__ = '0.0.0'
|
|
|
|
__all__ = [
|
|
'Client',
|
|
'ContainerNotFound',
|
|
'datetime_format',
|
|
'datetime_parse',
|
|
'ErrorOccurred',
|
|
'ImageNotFound',
|
|
'NoContainerRunning',
|
|
'NoContainersInPod',
|
|
'PodContainerError',
|
|
'PodmanError',
|
|
'PodNotFound',
|
|
]
|