Es-client

Latest version: v8.13.5

Safety actively analyzes 625891 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 8

8.12.3

------------------------

**Change**

Since I'm doing Schema validation here now, I think it appropriate to have a
dedicated exception for SchemaCheck failures.

This will be FailedValidation.

8.12.2

------------------------

**Fixes**

In trying to make ``SchemaCheck`` reusable, I discovered that it _always_,
was unconditionally attempting apply the ``password_filter`` on every
``config`` coming through. An empty filter shows up as ``None``, causing
an AttributeError exception. Going to only do ``password_filter`` when
``config`` is a ``dict``.

8.12.1

------------------------

**Announcement**

**TL;DR —** I got sick of coding the same lines over and over again, and
copy/pasting between projects. I put that code here to make it easier to reuse.

You can now make CLI/Click-related functionality more portable for your apps
using ``es_client``.

There is not really any change to the base ``Builder`` class, nor the
``ClientArgs`` or ``OtherArgs`` classes, so this is more a function of support
tools and tooling for handling the overriding of config file options with those
supplied at a command-line.

The improvements are visible in ``cli_example.py``.

Some of these changes include:

* Functions that simplify overriding configuration file options with ones
from the command-line. Reduces dozens of lines of code to a single
function call: ``get_args(ctx.params, config)``, which overrides the values
from ``config`` with the command-line parameters from Click.
* Re-usable ``cli_opts`` Click option wrapper function, complete with overrides.
This is demonstrated with the hidden options vs. ``show-all-options`` in
``cli_example.py``.
* Support basic logging configuration with ``default``, ``json``, and ``ecs``
* New modules in ``es_client.helpers``:
* ``config``
* ``logging``
* Lots and lots of tests, both unit and integration.
* Updated all documentation for modules, functions, and classes accordingly.

8.12.0

------------------------

**Changes**

* Dependency version bumps in this release:
* ``elasticsearch8==8.12.0``
* ``voluptuous>=0.14.1``
* ``certifi>=2023.11.17``

8.11.0

-------------------------

**Changes**

* Dependency version bumps in this version:
* ``elasticsearch8==8.11.0``
* Replace ``Mock`` with ``unittest.Mock`` in unit tests.
* Add Python 3.12 as a supported version (tested).

8.10.3

-----------------------

**Fixes**

Missed a few of the hidden options, and found a way to force the help output to
show for ``show-all-options`` without needing to add ``--help`` afterwards.

Page 3 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.