Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added async support for helpers that are merged from opensearch-dsl-py #329

Merged
merged 1 commit into from
Mar 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

## [Unreleased]
### Added
- Added async support for helpers that are merged from opensearch-dsl-py ([#329](https://github.com/opensearch-project/opensearch-py/pull/329))
### Changed
### Deprecated
### Removed
Expand Down
8 changes: 8 additions & 0 deletions opensearchpy/_async/helpers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: Apache-2.0
#
# The OpenSearch Contributors require contributions made to
# this file be licensed under the Apache-2.0 license or a
# compatible open source license.
#
# Modifications Copyright OpenSearch Contributors. See
# GitHub history for details.
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@
import asyncio
import logging

from ..compat import map
from ..exceptions import TransportError
from ..helpers.actions import (
from ...compat import map
from ...exceptions import TransportError
from ...helpers.actions import (
_ActionChunker,
_process_bulk_chunk_error,
_process_bulk_chunk_success,
expand_action,
)
from ..helpers.errors import ScanError
from ...helpers.errors import ScanError

logger = logging.getLogger("opensearchpy.helpers")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ from typing import (
Union,
)

from ..serializer import Serializer
from .client import AsyncOpenSearch
from ...serializer import Serializer
from ..client import AsyncOpenSearch

logger: logging.Logger

Expand Down
Loading