Expanding controller.py with basic user functions, get_models and destroy (#89)
[osm/N2VC.git] / juju / client / client.py
1 '''Replace auto-generated classes with our own, where necessary.
2 '''
3
4 from . import _client
5 from . import overrides
6
7
8 for o in overrides.__all__:
9 setattr(_client, o, getattr(overrides, o))
10
11 for o in overrides.__patches__:
12 c_type = getattr(_client, o)
13 o_type = getattr(overrides, o)
14 for a in dir(o_type):
15 if not a.startswith('_'):
16 setattr(c_type, a, getattr(o_type, a))
17
18 from ._client import * # noqa