This example uses the opensearch-py library to connect to OpenSearch, add a document, and read it out again.
pip install opensearch-py
Note: You can find the connection details in the "Overview" tab in the Aiven Console.
./main.py --url https://<user>:<password>@<host>:<port>
The document can be customized with the index name and doc type from the user input.