summaryrefslogtreecommitdiff
path: root/docker/client.py
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2016-11-23 15:15:58 -0800
committerJoffrey F <joffrey@docker.com>2016-11-28 15:28:04 -0800
commitf5ac10c469fca252e69ae780749f4ec6fe369789 (patch)
treeedd59b15fb03c7ce68187fbd8a41dd00f0d19537 /docker/client.py
parentc66c7f8b0a8ca216e21c9fe1903eb79f4406a93e (diff)
downloaddocker-py-docker_client.tar.gz
Rename Client -> DockerClientdocker_client
Replace references to old Client with APIClient Moved contents of services.md to appropriate locations Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'docker/client.py')
-rw-r--r--docker/client.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/docker/client.py b/docker/client.py
index b3b4700..b271eb7 100644
--- a/docker/client.py
+++ b/docker/client.py
@@ -9,14 +9,14 @@ from .models.volumes import VolumeCollection
from .utils import kwargs_from_env
-class Client(object):
+class DockerClient(object):
"""
A client for communicating with a Docker server.
Example:
>>> import docker
- >>> client = Client(base_url='unix://var/run/docker.sock')
+ >>> client = docker.DockerClient(base_url='unix://var/run/docker.sock')
Args:
base_url (str): URL to the Docker server. For example,
@@ -155,7 +155,7 @@ class Client(object):
version.__doc__ = APIClient.version.__doc__
def __getattr__(self, name):
- s = ["'Client' object has no attribute '{}'".format(name)]
+ s = ["'DockerClient' object has no attribute '{}'".format(name)]
# If a user calls a method on APIClient, they
if hasattr(APIClient, name):
s.append("In docker-py 2.0, this method is now on the object "
@@ -164,4 +164,4 @@ class Client(object):
raise AttributeError(' '.join(s))
-from_env = Client.from_env
+from_env = DockerClient.from_env