2016-03-29 17:17:12 +00:00
|
|
|
"""The Code."""
|
|
|
|
|
|
|
|
|
2020-01-26 23:41:36 +00:00
|
|
|
class Service:
|
2020-07-18 04:40:14 +00:00
|
|
|
"""The Service."""
|
2016-03-29 17:17:12 +00:00
|
|
|
|
|
|
|
|
2020-01-26 23:41:36 +00:00
|
|
|
class Client:
|
2020-07-18 04:40:14 +00:00
|
|
|
"""The Client that uses the Service."""
|
2016-03-29 17:17:12 +00:00
|
|
|
|
|
|
|
def __init__(self):
|
2020-07-18 04:40:14 +00:00
|
|
|
"""Initialize the Client."""
|
|
|
|
self.service = Service() # The Service is created by the Client
|
2016-03-29 17:17:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2020-07-18 04:40:14 +00:00
|
|
|
client = Client() # Application creates the Client
|