Files
opensearch-pyd/samples
nathaliellenaa b9e48dc847 Fix AuthorizationException with AWSV4SignerAsyncAuth when the doc ID has special characters. (#848)
* Lifecycle integration tests.

Signed-off-by: dblock <dblock@amazon.com>

* Added a test that makes sure the slash is properly encoded.

Signed-off-by: dblock <dblock@amazon.com>

* Added more tests for signer and _make_path.

Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>

* Prevent AIOHttpConnection from encoding the url a second time.

Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>

---------

Signed-off-by: dblock <dblock@amazon.com>
Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>
Co-authored-by: dblock <dblock@amazon.com>
2024-11-27 17:50:22 -05:00
..
2024-01-19 13:36:05 -05:00
2024-01-19 13:36:05 -05:00
2024-01-25 15:17:09 -08:00
2024-08-15 10:15:13 -04:00

OpenSearch Python Samples

Most samples can be run using OpenSearch installed locally with Docker.

Admin User Password

Add the default admin password to the environment.

export OPENSEARCH_PASSWORD=myStrongPassword123!

Start the Container

docker pull opensearchproject/opensearch:latest
docker run -d -p 9200:9200 -p 9600:9600 -e OPENSEARCH_INITIAL_ADMIN_PASSWORD=$OPENSEARCH_PASSWORD -e "discovery.type=single-node" opensearchproject/opensearch:latest

Install Python Prerequisites

Install poetry.

Run Samples

poetry install
poetry run python hello/hello.py