Zyte-common-items

Latest version: v0.19.0

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

Scan your dependencies

Page 1 of 4

0.19.0

===================

* Now requires ``attrs >= 22.2.0``.

* New deprecations:

* ``zyte_common_items.components.request_list_processor`` (use
``zyte_common_items.processors.probability_request_list_processor``)
* ``zyte_common_items.items.RequestListCaster`` (use
``zyte_common_items.converters.to_probability_request_list``)
* ``zyte_common_items.util.metadata_processor`` (use
``zyte_common_items.processors.metadata_processor``)

* Added :class:`~.pipelines.DropLowProbabilityItemPipeline` that drops items
with the ``probability`` value lower than a set threshold.

* Added the :class:`~.BaseMetadata`, :class:`~.ListMetadata`, and
:class:`~.DetailMetadata` classes (they were previously private).

* Added the :attr:`.ListMetadata.validationMessages` attribute.

* Added the :meth:`.ListMetadata.get_date_downloaded_parsed` method.

* Added the :mod:`zyte_common_items.converters` module with useful attrs
converters.

* Reorganized the module structure.

* Documentation improvements.

* Test and CI fixes and improvements.

0.18.0

===================

* Initial support for :ref:`request templates <request-templates>`, starting
with search requests.

0.17.1

===================

* Added Python 3.12 support.

* :func:`~zyte_common_items.processors.description_processor` and
:func:`~zyte_common_items.processors.description_html_processor` now
raise an exception when they receive an unsupported input value such as a
non-HtmlElement node.

* Documentation improvements.

0.17.0

===================

* Implement the ``zyte_common_items.ae`` module and the
``zyte_common_items.pipelines.AEPipeline`` item pipeline to make it easier to
`migrate from Zyte Automatic Extraction to Zyte API automatic extraction
<https://docs.zyte.com/zyte-api/migration/zyte/autoextract.html>`_.

0.16.0

===================

* ``Auto``-prefixed versions of :ref:`page objects <page-objects>`, such as
:meth:`~zyte_common_items.AutoProductPage`, now have all their fields defined
as synchronous instead of asynchronous.

0.15.0

===================

* Now requires ``zyte-parsers >= 0.5.0``.

* Added :class:`~.SocialMediaPost` and related classes.

* Added :class:`~.ProductFromListExtractor`,
:class:`~.ProductFromListSelectorExtractor`,
:class:`~.ProductVariantExtractor` and
:class:`~.ProductVariantSelectorExtractor`.

* Added :func:`zyte_common_items.processors.rating_processor` and enabled it
for the ``aggregateRating`` fields in the page classes for
:class:`~.BusinessPlace` and :class:`~.Product`.

* Improved the documentation about the processors.

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.