Sayt

Latest version: v0.6.5

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

Scan your dependencies

Page 2 of 3

0.5.2

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**Minor Improvements**

- Add the ``DataSet.is_data_cache_exists()`` method.

**Miscellaneous**

- Improve code coverage test.

0.5.1

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**Features and Improvements**

- Add concurrency lock mechanism to prevent refreshing the index if there is another thread already working on it.

**Minor Improvements**

- Add the ``DataSet.is_indexing()`` and ``RefreshableDataSet.is_indexing()`` method.

**Bugfixes**

- Fix a bug that the cache is not correctly removed when rebuild the dataset.

0.4.1

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**Features and Improvements**

- Add ``RefreshableDataSet`` a new class that extend the ``DataSet``, it allows user to refresh the index automatically when necessary.
- Add the following public api:
- ``sayt.api.T_Hit``
- ``sayt.api.T_Result``
- ``sayt.api.T_RECORD``
- ``sayt.api.T_KWARGS``
- ``sayt.api.T_DOWNLOADER``
- ``sayt.api.T_CACHE_KEY_DEF``
- ``sayt.api.T_CONTEXT``
- ``sayt.api.T_EXTRACTOR``
- ``sayt.api.T_RefreshableDataSetResult``
- ``sayt.api.RefreshableDataSet``

**Miscellaneous**

- since this library only supports Python3.8+, we removed the optional ``cached-property`` and ``dataclasses`` dependencies.

0.3.2

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**Minor Improvements**

- the final whoosh index name is the ``DataSet.index_name`` as it is. we no longer automatically hash the index name

**Bugfixes**

- fix a bug the cache_tag is not correctly set in ``DataSet.search(...)`` method.

0.3.1

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**💥 Breaking change**

- Drop support for Python3.7 because of the ``TypedDict`` type hint.

**Features and Improvements**

- Add ``simple_response: bool = True`` option to ``DataSet.search(...)`` method, allow to return elasticsearch HTTP response styled result.

0.2.3

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**Bugfixes**

- Fix a bug that when ``DataSet.search(...)`` method forget to set the result cache along with the tag. So that this cache cannot be cleared by ``DataSet.clear_cache`` method.

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.