Web-poet

Latest version: v0.17.0

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

Scan your dependencies

Page 2 of 5

0.13.0

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

* A new dependency :class:`~.BrowserResponse` has been added. It contains a
browser-rendered page URL, status code and HTML.
* The :ref:`rules` documentation section has been rewritten.

0.12.0

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

* The :ref:`testing framework <web-poet-testing>` now allows defining a
:ref:`custom item adapter <web-poet-testing-adapters>`.
* We have made a backward-incompatible change on test fixture serialization:
the ``type_name`` field of exceptions has been renamed to ``import_path``.
* Fixed built-in Python types, e.g. ``int``, not working as :ref:`field
processors <field-processors>`.

0.11.0

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

* JMESPath_ support is now available: you can use :meth:`.WebPage.jmespath` and
:meth:`.HttpResponse.jmespath` to run queries on JSON responses.
* The testing framework now supports page objects that raise exceptions from
the ``to_item`` method.

.. _JMESPath: https://jmespath.org/

0.10.0

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

* New class :class:`~.Extractor` can be used for easier extraction of nested
fields (see :ref:`default-processors-nested`).
* Exceptions raised while getting a response for an additional request are now
saved in :ref:`test fixtures <web-poet-testing-additional-requests>`.
* Multiple documentation improvements and fixes.
* Add a ``twine check`` CI check.

0.9.0

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

* Standardized :ref:`input validation <input-validation>`.
* :ref:`Field processors <field-processors>` can now also be defined through a
nested ``Processors`` class, so that field redefinitions in subclasses can
inherit them. See :ref:`default-processors`.
* :ref:`Field processors <field-processors>` can now opt in to receive the page
object whose field is being read.
* :class:`web_poet.fields.FieldsMixin` now keeps fields from all base classes
when using multiple inheritance.
* Fixed the documentation build.

0.8.1

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

* Fix the error when calling :meth:`.to_item() <web_poet.pages.ItemPage.to_item>`,
:func:`item_from_fields_sync() <web_poet.fields.item_from_fields_sync>`, or
:func:`item_from_fields() <web_poet.fields.item_from_fields>` on page objects
defined as slotted attrs classes, while setting ``skip_nonitem_fields=True``.

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.