datadouble-opensearch 0.0.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- datadouble_opensearch/__init__.py +63 -0
- datadouble_opensearch/py.typed +0 -0
- datadouble_opensearch-0.0.3.dist-info/METADATA +58 -0
- datadouble_opensearch-0.0.3.dist-info/RECORD +7 -0
- datadouble_opensearch-0.0.3.dist-info/WHEEL +4 -0
- datadouble_opensearch-0.0.3.dist-info/entry_points.txt +2 -0
- datadouble_opensearch-0.0.3.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Copyright (c) 2026- Tight Line LLC
|
|
2
|
+
# SPDX-License-Identifier: MIT
|
|
3
|
+
|
|
4
|
+
"""The OpenSearch engine adapter for Datadouble.
|
|
5
|
+
|
|
6
|
+
Spec settings::
|
|
7
|
+
|
|
8
|
+
sources:
|
|
9
|
+
app:
|
|
10
|
+
engine: opensearch
|
|
11
|
+
connection:
|
|
12
|
+
url: {env: SEARCH_URL} # http[s]://[user:password@]host[:port], by reference
|
|
13
|
+
indices: ["*", "-logs-*"] # index patterns; the default is every open index
|
|
14
|
+
sample: 1000 # documents sampled for fields mappings do not declare
|
|
15
|
+
server:
|
|
16
|
+
heap: 512m # the Java heap of working nodes
|
|
17
|
+
|
|
18
|
+
The source is OpenSearch 2.4 or later, the first with points in time. The
|
|
19
|
+
adapter is the Elasticsearch adapter's package serving OpenSearch
|
|
20
|
+
(decision 96): the same catalog, extract, images and rules, with
|
|
21
|
+
OpenSearch's image, security plugin and point-in-time API. Working nodes and
|
|
22
|
+
copies run the security plugin's demonstration configuration over plain
|
|
23
|
+
HTTP, with the ``admin`` user's password set at their first start.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
from datadouble.names import EngineName
|
|
27
|
+
from datadouble_elasticsearch import ElasticEngine
|
|
28
|
+
from datadouble_elasticsearch.product import COMMON_SETTINGS, PointInTimeApi, Product
|
|
29
|
+
|
|
30
|
+
_HOME = "/usr/share/opensearch"
|
|
31
|
+
|
|
32
|
+
OPENSEARCH = Product(
|
|
33
|
+
engine=EngineName("opensearch"),
|
|
34
|
+
name="OpenSearch",
|
|
35
|
+
distribution="opensearch",
|
|
36
|
+
owner="1000:1000",
|
|
37
|
+
repository="opensearchproject/opensearch",
|
|
38
|
+
user="admin",
|
|
39
|
+
launch=f"{_HOME}/opensearch-docker-entrypoint.sh opensearch",
|
|
40
|
+
# The image's entrypoint would refuse a password without capitals and
|
|
41
|
+
# symbols; the demonstration installer takes any with -t. Once a node has
|
|
42
|
+
# started, its users live in its data directory and this changes nothing.
|
|
43
|
+
setup=(
|
|
44
|
+
"export DISABLE_INSTALL_DEMO_CONFIG=true"
|
|
45
|
+
f' && OPENSEARCH_INITIAL_ADMIN_PASSWORD="$DATADOUBLE_PASSWORD"'
|
|
46
|
+
f" bash {_HOME}/plugins/opensearch-security/tools/install_demo_configuration.sh"
|
|
47
|
+
" -y -i -s -t > /dev/null"
|
|
48
|
+
),
|
|
49
|
+
heap="OPENSEARCH_JAVA_OPTS",
|
|
50
|
+
settings=(
|
|
51
|
+
*COMMON_SETTINGS,
|
|
52
|
+
"plugins.security.ssl.http.enabled=false",
|
|
53
|
+
"plugins.security.audit.type=noop",
|
|
54
|
+
),
|
|
55
|
+
pit=PointInTimeApi(
|
|
56
|
+
open="_search/point_in_time", key="pit_id", close="/_search/point_in_time", listed=True
|
|
57
|
+
),
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def engine() -> ElasticEngine:
|
|
62
|
+
"""The entry point named in ``datadouble.engines``."""
|
|
63
|
+
return ElasticEngine(OPENSEARCH)
|
|
File without changes
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: datadouble-opensearch
|
|
3
|
+
Version: 0.0.3
|
|
4
|
+
Summary: OpenSearch engine adapter for Datadouble
|
|
5
|
+
Project-URL: Homepage, https://datadouble.tightlinesoftware.com/
|
|
6
|
+
Project-URL: Source, https://github.com/datadouble/datadouble
|
|
7
|
+
Author: Tight Line LLC
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
11
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
15
|
+
Classifier: Topic :: Database
|
|
16
|
+
Classifier: Typing :: Typed
|
|
17
|
+
Requires-Python: >=3.13
|
|
18
|
+
Requires-Dist: datadouble
|
|
19
|
+
Requires-Dist: datadouble-elasticsearch
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
|
|
22
|
+
# datadouble-opensearch
|
|
23
|
+
|
|
24
|
+
The OpenSearch engine adapter for [Datadouble](https://datadouble.tightlinesoftware.com/).
|
|
25
|
+
|
|
26
|
+
It is the [Elasticsearch adapter](https://github.com/datadouble/datadouble/tree/main/adapters/elasticsearch)
|
|
27
|
+
serving OpenSearch: the same tables, subsets, images and rules, described
|
|
28
|
+
there, with OpenSearch's image, security plugin and point-in-time API. The
|
|
29
|
+
source is OpenSearch 2.4 or later, the first version with points in time.
|
|
30
|
+
|
|
31
|
+
```yaml
|
|
32
|
+
sources:
|
|
33
|
+
app:
|
|
34
|
+
engine: opensearch
|
|
35
|
+
connection:
|
|
36
|
+
url: # http[s]://[user:password@]host[:port], by reference
|
|
37
|
+
env: SEARCH_URL
|
|
38
|
+
indices: ["*", "-logs-*"] # index patterns; the default is every open index
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Working nodes and copies run in the official `opensearchproject/opensearch`
|
|
42
|
+
image of the source's exact version, with the security plugin's
|
|
43
|
+
demonstration configuration over plain HTTP. Datadouble and consumers sign
|
|
44
|
+
in as `admin`, whose password a node or copy gets at its first start and
|
|
45
|
+
keeps in its data directory.
|
|
46
|
+
|
|
47
|
+
## Plugins
|
|
48
|
+
|
|
49
|
+
Plugins are requirements as for
|
|
50
|
+
[Elasticsearch](https://github.com/datadouble/datadouble/tree/main/adapters/elasticsearch#plugins),
|
|
51
|
+
listed in the image with `opensearch-plugin list`. The official image
|
|
52
|
+
bundles the project's plugins (security, k-NN, alerting and the rest) at the
|
|
53
|
+
source version's own release, so a source running the same bundle needs
|
|
54
|
+
nothing more; any others need an image built `FROM` the official one.
|
|
55
|
+
|
|
56
|
+
The catalog leaves out the indices plugins write for themselves: those
|
|
57
|
+
starting with a dot, and query insights' daily `top_queries-*` indices,
|
|
58
|
+
which its mapping's `_meta` marks.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
datadouble_opensearch/__init__.py,sha256=1r7tjgNdoKHSp-nNE4PRraqq2qjvrFditvEFD6LlFx4,2401
|
|
2
|
+
datadouble_opensearch/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
datadouble_opensearch-0.0.3.dist-info/METADATA,sha256=jD21fSwVuzLm36nSPUcbDS_U2IQ1bddUH6uEyYQjieY,2403
|
|
4
|
+
datadouble_opensearch-0.0.3.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
5
|
+
datadouble_opensearch-0.0.3.dist-info/entry_points.txt,sha256=GqHcfhCJmmlt_ppXcSoHqsEZmcwqdokpK5C9345IFUY,63
|
|
6
|
+
datadouble_opensearch-0.0.3.dist-info/licenses/LICENSE,sha256=2LcT-SSMiSa7vrHsdC41sUWNmkcwZqIYdYBaSVmqqT8,1072
|
|
7
|
+
datadouble_opensearch-0.0.3.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026- Tight Line LLC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|