| Mike Marchetti | e84eb31 | 2017-05-04 15:06:26 -0400 | [diff] [blame] | 1 | # Copyright 2017 Sandvine |
| 2 | # |
| 3 | # All Rights Reserved. |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 6 | # not use this file except in compliance with the License. You may obtain |
| 7 | # a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 13 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 14 | # License for the specific language governing permissions and limitations |
| 15 | # under the License. |
| 16 | |
| 17 | """ |
| 18 | OSM client entry point |
| 19 | """ |
| 20 | |
| 21 | from osmclient.v1 import client |
| 22 | |
| 23 | |
| Mike Marchetti | 4c7e237 | 2017-05-08 16:07:20 -0400 | [diff] [blame] | 24 | def Client(version=1, host=None, *args, **kwargs): |
| Mike Marchetti | e84eb31 | 2017-05-04 15:06:26 -0400 | [diff] [blame] | 25 | if version == 1: |
| 26 | return client.Client(host, *args, **kwargs) |
| 27 | else: |
| 28 | raise Exception("Unsupported client version") |