/
zhendosina
/
obshell-sdk-python
Обзор
Документация
Войти
/
zhendosina
/
obshell-sdk-python
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
obshell/service/client_set.py
38 строк
1 KB
禹梁
PullRequest: 75 feat: support https
13 апр 2026, 06:32
13 апр 2026, 06:32
58e55bf
Код
Авторство
О чём код?
# coding: utf-8 # Copyright (c) 2024 OceanBase. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from obshell.auth.password import PasswordAuth from obshell.service.client_v1 import ClientV1 from obshell.request import ProtocolOptions class ClientSet: DEFAULT_REQUEST_TIMEOUT = 600 def __init__(self, host: str, port: int = 2886, auth=PasswordAuth(""), timeout=DEFAULT_REQUEST_TIMEOUT, protocol_options: ProtocolOptions = ProtocolOptions.http()): self._v1 = ClientV1(host, port, auth, timeout, protocol_options) @property def v1(self) -> ClientV1: return self._v1 @property def v2(self): raise NotImplementedError