Skip to content

Commit aaca1c0

Browse files
intermediate changes
ref:9091872 sync: https://proxy.sandbox.yandex-team.ru/2748294842
1 parent d759b81 commit aaca1c0

File tree

15 files changed

+71
-31
lines changed

15 files changed

+71
-31
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.1.16 ##
2+
3+
* alias `kikimr.public.sdk.python.client` is deprecated. use `import ydb` instead.
4+
* alias `kikimr.public.api` is deprecated, use `ydb.public.api` instead.
5+
* method `construct_credentials_from_environ` is now deprecated and will be removed in the future.
6+
17
## 1.1.15 ##
28

39
* override the default load balancing policy for discovery endpoint to the `round_robin` policy.

kikimr/__init__.py

Whitespace-only changes.

kikimr/public/__init__.py

Whitespace-only changes.

kikimr/public/api/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from ydb.public.api import * # noqa
2+
import sys
3+
import warnings
4+
5+
sys.modules['kikimr.public.api'] = sys.modules['ydb.public.api']
6+
warnings.warn("using kikimr.public.api module is deprecated. please use ydb.public.api import instead")

kikimr/public/sdk/__init__.py

Whitespace-only changes.

kikimr/public/sdk/python/__init__.py

Whitespace-only changes.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# -*- coding: utf-8 -*-
2+
from ydb import * # noqa
3+
import sys
4+
import six
5+
import warnings
6+
7+
warnings.warn("module kikimr.public.sdk.python.client is deprecated. please use ydb instead")
8+
9+
10+
for name, module in six.iteritems(sys.modules.copy()):
11+
if not name.startswith("ydb"):
12+
continue
13+
14+
if name.startswith("ydb.public"):
15+
continue
16+
17+
module_import_path = name.split('.')
18+
if len(module_import_path) < 2:
19+
continue
20+
21+
sys.modules['kikimr.public.sdk.python.client.' + '.'.join(module_import_path[1:])] = module
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
try:
2+
from ydb.tornado import * # noqa
3+
import sys
4+
import warnings
5+
6+
warnings.warn("module kikimr.public.sdk.python.client.frameworks is deprecated. please use ydb.tornado instead")
7+
8+
sys.modules['kikimr.public.sdk.python.client.frameworks.tornado_helpers'] = sys.modules['ydb.tornado.tornado_helpers']
9+
except ImportError:
10+
pass
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from ydb.iam import * # noqa
2+
import sys
3+
import warnings
4+
5+
warnings.warn("using kikimr.public.sdk.python.iam module is deprecated. please use ydb.iam import instead")
6+
7+
sys.modules['kikimr.public.sdk.python.iam.auth'] = sys.modules['ydb.iam.auth']

ydb/aio/README.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)