Zyte-common-items

Latest version: v0.27.0

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

Scan your dependencies

Page 2 of 6

0.23.0

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

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

0.22.0

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

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

0.21.0

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

* The new :func:`~zyte_common_items.processors.images_processor`, used by
default in ``images`` fields, can convert a string, a list of strings or a
list of dicts into an :class:`~zyte_common_items.Image` list. Strings become
:attr:`Image.url <zyte_common_items.Image.url>`. Dicts get their ``url`` key
mapped as :attr:`Image.url <zyte_common_items.Image.url>`.

* :func:`~zyte_common_items.processors.brand_processor` now converts strings
into :class:`~zyte_common_items.Brand` objects with the input string as
:attr:`Brand.name <zyte_common_items.Brand.name>`.

* :func:`~zyte_common_items.processors.price_processor` and
:func:`~zyte_common_items.processors.simple_price_processor` now convert
numeric values into strings with 2 decimal positions.

* :func:`~zyte_common_items.processors.metadata_processor` no longer assumes
that the input metadata is not ``None``.

0.20.0

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

* Now fields of :ref:`auto page object classes <auto>` have ``auto_field`` set
to ``True`` in their field metadata, to make it easier to check if a page
object subclass is overriding a given field.

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:`~.DetailsMetadata` 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.

Page 2 of 6

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.