blob: 1016608463535bf13492fc6aea14041e0bf4c891 [file] [log] [blame]
Mike Marchettie84eb312017-05-04 15:06:26 -04001# 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"""
18OSM client entry point
19"""
20
21from osmclient.v1 import client
22
23
Mike Marchetti4c7e2372017-05-08 16:07:20 -040024def Client(version=1, host=None, *args, **kwargs):
Mike Marchettie84eb312017-05-04 15:06:26 -040025 if version == 1:
26 return client.Client(host, *args, **kwargs)
27 else:
28 raise Exception("Unsupported client version")