1650 Commits

Author SHA1 Message Date
Sai Medhini Reddy Maryada fe4b6d754c added remote store client (#552)
Signed-off-by: saimedhi <saimedhi@amazon.com>
2023-10-26 10:59:07 -04:00
Sai Medhini Reddy Maryada 1190079f51 Generate opensearch-py client from API specs (#551)
Signed-off-by: saimedhi <saimedhi@amazon.com>
2023-10-26 10:58:33 -04:00
Daniel (dB.) Doubrovkine 59072a67b8 Remove PY2. (#550)
Signed-off-by: dblock <dblock@amazon.com>
2023-10-25 08:41:50 -04:00
Daniel (dB.) Doubrovkine 627e717534 Remove support for Python 2.x. (#548)
Signed-off-by: dblock <dblock@amazon.com>
2023-10-24 07:57:21 -07:00
Daniel (dB.) Doubrovkine a1f942b6f9 Added support for AWS Sigv4 for UrlLib3. (#547)
* WIP: Added support for AWS Sigv4 for UrlLib3.

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

* Refactored common implementation.

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

* Added sigv4 samples.

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

* Updated CHANGELOG.

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

* Add documentation.

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

* Use the correct class in tests.

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

* Renamed samples.

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

* Split up requests and urllib3 unit tests.

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

* Rename AWSV4Signer.

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

* Clarified documentation of when to use Urllib3AWSV4SignerAuth vs. RequestHttpConnection.

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

* Move fetch_url inside the signer class.

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

* Added unit test for Urllib3AWSV4SignerAuth adding headers.

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

* Added unit test for signing to include query string.

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

---------

Signed-off-by: dblock <dblock@amazon.com>
2023-10-23 19:46:19 -04:00
Daniel (dB.) Doubrovkine fa8f3a7ae0 Added a guide on making raw JSON REST requests. (#542)
Signed-off-by: dblock <dblock@amazon.com>
2023-10-16 12:32:17 -07:00
DJ Carrillo d9a7050df4 Added advanced index actioins guide & sample code file. (#541)
Signed-off-by: Djcarrillo6 <djcarrillo6@yahoo.com>
2023-10-16 11:27:22 -04:00
Daniel (dB.) Doubrovkine af263a060a Add micro benchmarks. (#537)
* Align pool_maxsize for different connection pool implementations.

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

* Added benchmarks.

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

* Multi-threaded vs. async benchmarks.

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

* Set pool size to the number of threads.

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

* Added sync/async benchmark.

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

* Report client-side latency.

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

* Various updates to benchmarks, demonstrating threading improves throughput.

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

* Bench info.

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

* Fixup format.

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

* Undo async maxsize.

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

* Moved benchmarks folder.

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

* Updated documentation and project description.

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

---------

Signed-off-by: dblock <dblock@amazon.com>
2023-10-13 11:29:54 -07:00
Daniel (dB.) Doubrovkine 7a638cdafc Align pool_maxsize for different connection pool implementations. (#535)
* Align pool_maxsize for different connection pool implementations.

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

* Document connection classes and settings.

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

* Undo change in async for backwards compatibility.

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

* Fix: typo.

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

---------

Signed-off-by: dblock <dblock@amazon.com>
2023-10-12 18:55:31 -04:00
DJ Carrillo 62b408bbd1 Removed EOL Python3.5 & bumped urllib3 version to patch security vulnerability (#533)
Updated CHANGELOG with pull #



Updated CHANGELOG with pull #



Updated CHANGELOG removed section.



Updated CHANGELOG removed section again

Signed-off-by: Djcarrillo6 <djcarrillo6@yahoo.com>
2023-10-12 14:11:21 -07:00
DJ Carrillo 84ac172ddc Added new guide & sample module for using index templates. (#531)
Added index_template guide and sample



Signed-off-by: Djcarrillo6 <djcarrillo6@yahoo.com>
2023-10-11 10:11:35 -07:00
Sai Medhini Reddy Maryada ce835fb59d Generate cluster client from API specs (#530)
Signed-off-by: saimedhi <saimedhi@amazon.com>
2023-10-09 17:57:09 -04:00
Sai Medhini Reddy Maryada 388fb9d983 Generate cat client from API specs (#529)
Signed-off-by: saimedhi <saimedhi@amazon.com>
2023-10-09 17:55:51 -04:00
Sai Medhini Reddy Maryada e4c59e4732 Modified generator to generate api deprecation warnings (#527)
Signed-off-by: saimedhi <saimedhi@amazon.com>
2023-10-09 16:47:26 -04:00
Daniel (dB.) Doubrovkine 2bfc409177 Fix: typos. (#526)
* Fix: typo.

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

* Fix: typo.

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

* Fixed its.

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

* Added Visual Code settings to .gitignore.

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

* Added loop type for async client.

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

---------

Signed-off-by: dblock <dblock@amazon.com>
2023-10-09 10:45:18 -07:00
Sai Medhini Reddy Maryada 49c2f6e87d Bump version to 2.3.2 (#524)
Signed-off-by: saimedhi <saimedhi@amazon.com>
2023-10-06 16:37:56 -04:00
Sai Medhini Reddy Maryada be26adb369 updated changelog (#522)
Signed-off-by: saimedhi <saimedhi@amazon.com>
2023-10-03 16:01:41 -07:00
Sai Medhini Reddy Maryada 80b96812a7 Integrated generated 'nodes' client APIs into the existing module, ensuring alignment with the server and maintaining backward compatibility (#514)
Signed-off-by: saimedhi <saimedhi@amazon.com>
Signed-off-by: Sai Medhini Reddy Maryada <117196660+saimedhi@users.noreply.github.com>
Signed-off-by: Daniel (dB.) Doubrovkine <dblock@amazon.com>
Co-authored-by: Daniel (dB.) Doubrovkine <dblock@amazon.com>
2023-10-03 15:00:49 -07:00
Bhavani Ravi 1a47e6fa1f fixes: #512 Wrong return type hint in async_scan (#520)
* fixes: #512 Wrong return type hint in async_scan

Signed-off-by: Bhavani Ravi <bhava0895@gmail.com>

* add: changelog

Signed-off-by: Bhavani Ravi <bhava0895@gmail.com>

---------

Signed-off-by: Bhavani Ravi <bhava0895@gmail.com>
2023-10-03 10:45:35 -04:00
Sai Medhini Reddy Maryada 70db37a3c0 Modified generator to generate 'options' and 'default value' for parameters in description (#519)
Signed-off-by: saimedhi <saimedhi@amazon.com>
2023-10-03 10:43:05 -04:00
Sai Medhini Reddy Maryada 781744c6b1 Bumps from >=1.21.1 to >=1.26.9 (#518)
Signed-off-by: saimedhi <saimedhi@amazon.com>
2023-10-03 10:41:41 -04:00
Sai Medhini Reddy Maryada 9fe5f5ad62 Integrated generated dangling_indices client APIs into the existing module, ensuring alignment with the server and maintaining backward compatibility (#511)
Signed-off-by: saimedhi <saimedhi@amazon.com>
Signed-off-by: Sai Medhini Reddy Maryada <117196660+saimedhi@users.noreply.github.com>
2023-10-03 10:40:51 -04:00
Sai Medhini Reddy Maryada 7d3c528dff Integrated generated ingest client APIs into the existing module, ensuring alignment with the server and maintaining backward compatibility (#513)
Signed-off-by: saimedhi <saimedhi@amazon.com>
2023-09-28 20:18:53 -07:00
Sai Medhini Reddy Maryada 2feccc22bb Integrated generated APIs into the existing module, ensuring alignment with the server and maintaining backward compatibility (#508)
Signed-off-by: saimedhi <saimedhi@amazon.com>
2023-09-26 12:49:25 -04:00
Sai Medhini Reddy Maryada c6c7df5461 Updated APIs to match other clients and opensearch openapi spec (#502)
Signed-off-by: saimedhi <saimedhi@amazon.com>
2023-09-26 12:46:18 -04:00
Daniel (dB.) Doubrovkine 69750e82d8 Fix: typo. (#497)
Signed-off-by: dblock <dblock@amazon.com>
2023-09-15 11:51:55 -07:00
Raman Saparkhan 29c6445dcc [CCI][GUIDE] Minor fixes to poetry docs (#494)
* minor fixes to poetry docs

Signed-off-by: Raman Saparkhan <romasaparhan19@gmail.com>

* updated CHANGELOG.md

Signed-off-by: Raman Saparkhan <romasaparhan19@gmail.com>

* updated CHANGELOG.md

Signed-off-by: Raman Saparkhan <romasaparhan19@gmail.com>

* fixed CHANGELOG.md

Signed-off-by: Raman Saparkhan <romasaparhan19@gmail.com>

---------

Signed-off-by: Raman Saparkhan <romasaparhan19@gmail.com>
2023-09-15 03:07:52 -04:00
Sai Medhini Reddy Maryada c8b04a5246 Adding @florianvazelle as maintainer and codeowner (#478)
Signed-off-by: saimedhi <saimedhi@amazon.com>
2023-08-22 11:05:35 -07:00
Sai Medhini Reddy Maryada 14602d61cf Bump version to 2.3.1 (#481)
Signed-off-by: saimedhi <saimedhi@amazon.com>
Signed-off-by: Sai Medhini Reddy Maryada <117196660+saimedhi@users.noreply.github.com>
2023-08-21 12:06:19 -07:00
dependabot[bot] c355911e86 Update sphinx requirement from <7.2 to <7.3 (#480)
* Update sphinx requirement from <7.2 to <7.3

Updates the requirements on [sphinx](https://github.com/sphinx-doc/sphinx) to permit the latest version.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v0.1.61611...v7.2.2)

---
updated-dependencies:
- dependency-name: sphinx
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update changelog

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
2023-08-21 11:46:51 -07:00
Logan Attwood fca8bd3d0e Fix race condition in AWS request signers (#470)
* Fix race condition in AWS request signers

Signed-off-by: Logan Attwood <logan.attwood@gmail.com>

* Conditionally expose get_frozen_credentials on mock_session

Signed-off-by: Logan Attwood <logan.attwood@gmail.com>

* Use inheritance to make tests cleaner

Signed-off-by: Logan Attwood <logan.attwood@gmail.com>

---------

Signed-off-by: Logan Attwood <logan.attwood@gmail.com>
2023-08-10 13:32:53 -04:00
Sai Medhini Reddy Maryada 8485606913 Added generating imports and headers to API generator (#467)
Signed-off-by: saimedhi <saimedhi@amazon.com>
2023-08-02 15:00:20 -07:00
Sai Medhini Reddy Maryada c104ae52b3 Bumps urllib3 (#466)
Signed-off-by: saimedhi <saimedhi@amazon.com>
2023-08-02 17:46:49 -04:00
dependabot[bot] 1532b06ec2 Update sphinx requirement from <7.1 to <7.2 (#463)
* Update sphinx requirement from <7.1 to <7.2

Updates the requirements on [sphinx](https://github.com/sphinx-doc/sphinx) to permit the latest version.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v0.1.61611...v7.1.1)

---
updated-dependencies:
- dependency-name: sphinx
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update changelog

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
2023-07-31 10:15:36 -07:00
Vacha Shah 26458fa6cd Adding missing comma to jenkins workflow (#458)
Signed-off-by: Vacha Shah <vachshah@amazon.com>
2023-07-26 19:39:52 -07:00
Sai Medhini Reddy Maryada b1c82a265d Bump version to 2.3.0 (#456)
Signed-off-by: saimedhi <saimedhi@amazon.com>
2023-07-26 17:19:22 -07:00
Sai Medhini Reddy Maryada caeaa13250 Updated Security Client APIs (#450)
Signed-off-by: saimedhi <saimedhi@amazon.com>
2023-07-26 18:38:49 -04:00
Daniel (dB.) Doubrovkine 87b402c16e Finish up #305, tests for AsyncTransport (#452)
* fix multihost connection of AsyncTransport for AIOHttpConnection as connection_class & ConnectionPool as connection_pool_class parameters with compatability legacy test cases

Signed-off-by: ARashitov <adil.rashitov.98@gmail.com>

* adding test cases for checking multihost connection pool init with specified connection_class object

Signed-off-by: ARashitov <adil.rashitov.98@gmail.com>

* remove introduced updates

Signed-off-by: ARashitov <adil.rashitov.98@gmail.com>

* fix test cases by adding _async_init() call to init the actual hosts

Signed-off-by: ARashitov <adil.rashitov.98@gmail.com>

* remove unneeded imports

Signed-off-by: ARashitov <adil.rashitov.98@gmail.com>

* fix test cases of multi hosts connection pool init & adding documentation

Signed-off-by: ARashitov <adil.rashitov.98@gmail.com>

* Addressed comments in #305.

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

* Renamed file for consistency.

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

---------

Signed-off-by: ARashitov <adil.rashitov.98@gmail.com>
Signed-off-by: dblock <dblock@amazon.com>
Co-authored-by: ARashitov <adil.rashitov.98@gmail.com>
2023-07-26 10:45:52 -07:00
Daniel (dB.) Doubrovkine e022932ed1 Add the ability to run test patterns. (#454)
Signed-off-by: dblock <dblock@amazon.com>
2023-07-26 10:18:45 -07:00
Daniel (dB.) Doubrovkine 42852d0d53 Added Python 3.10 and 3.11 to nox. (#455)
Signed-off-by: dblock <dblock@amazon.com>
2023-07-26 10:03:42 -07:00
Vacha Shah f235013f1d Adding @saimedhi as maintainer and codeowner (#451)
Signed-off-by: Vacha Shah <vachshah@amazon.com>
2023-07-26 10:05:58 -04:00
Daniel (dB.) Doubrovkine 54a517ada9 Added bulk samples and explained error handling. (#448)
* Added bulk samples and explained error handling.

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

* The client can serialize an array for you.

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

---------

Signed-off-by: dblock <dblock@amazon.com>
2023-07-25 19:17:28 -07:00
Daniel (dB.) Doubrovkine f54973e583 Added k-nn user guide and samples. (#449)
* Added k-nn user guide and samples.

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

* Added async samples.

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

* Renamed Lucene Filters with Efficient Filters.

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

* Fixing TOC from Lucene filters to Efficient filters

Signed-off-by: Vacha Shah <vachshah@amazon.com>

---------

Signed-off-by: dblock <dblock@amazon.com>
Signed-off-by: Vacha Shah <vachshah@amazon.com>
Co-authored-by: Vacha Shah <vachshah@amazon.com>
2023-07-25 19:04:13 -07:00
Daniel (dB.) Doubrovkine 58217d98ff Reorganize documentation and add samples. (#447)
Signed-off-by: dblock <dblock@amazon.com>
2023-07-24 10:23:51 -07:00
florianvazelle 5866880c81 Add async tests for plugins (#425)
* test(plugins): add async tests for plugins

Signed-off-by: florian <florian@harfanglab.fr>

* chore(USER_GUIDE): remove **

Signed-off-by: florian <florian@harfanglab.fr>

* test(async): remove the event loop session scoped fixture

Signed-off-by: florian <florian@harfanglab.fr>

---------

Signed-off-by: florian <florian@harfanglab.fr>
2023-07-24 09:56:32 -04:00
Sai Medhini Reddy Maryada 5fa6d994bd Added support for latest OpenSearch versions 2.7.0, 2.8.0 (#445)
Signed-off-by: saimedhi <saimedhi@amazon.com>
2023-07-21 13:08:09 -04:00
florianvazelle 5dc51d4b7f Move security api from plugins to clients (#442)
* fix(security): move security api from plugins to clients

Signed-off-by: florian <florian@harfanglab.fr>

* chore(CHANGELOG): update CHANGELOG for the PR#442

Signed-off-by: florian <florian@harfanglab.fr>

---------

Signed-off-by: florian <florian@harfanglab.fr>
2023-07-21 13:07:20 -04:00
Michael Oliver 4dba35deea Allow passing trust_env to aiohttp.ClientSession (#438)
Fixes #368

Signed-off-by: Michael Oliver <michael@michaeloliver.dev>
2023-07-19 09:02:04 -04:00
dependabot[bot] 49d75c2e7d Update pytest-asyncio requirement from <=0.21.0 to <=0.21.1 (#437)
* Update pytest-asyncio requirement from <=0.21.0 to <=0.21.1

Updates the requirements on [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.1.1...v0.21.1)

---
updated-dependencies:
- dependency-name: pytest-asyncio
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update changelog

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
2023-07-17 13:25:27 -04:00
Naveen Mathew faa298a3c4 fix : remove AttrJSONSerializer from autodoc classes to document (#433)
* fix : remove AttrJSONSerializer from autodoc classes to document

Signed-off-by: naveen <naveenmathew0508@gmail.com>

* Update CHANGELOG.md

Signed-off-by: naveen <naveenmathew0508@gmail.com>

* ci: check if docs are built successfully

Signed-off-by: naveen <naveenmathew0508@gmail.com>

---------

Signed-off-by: naveen <naveenmathew0508@gmail.com>
2023-07-13 13:22:30 -04:00