ItemAdapter class is a wrapper for data container objects

Edit Package python-itemadapter

The ItemAdapter class is a wrapper for data container objects, providing a common interface to handle objects of different types in an uniform manner, regardless of their underlying implementation.

Currently supported types are:
- dict
- scrapy.item.Item
- dataclass-based classes
- attrs-based classes

Refresh
Refresh
Source Files
Filename Size Changed
_multibuild 0000000053 53 Bytes
itemadapter-0.4.0.tar.gz 0000014682 14.3 KB
python-itemadapter.changes 0000001527 1.49 KB
python-itemadapter.spec 0000002310 2.26 KB
Revision 5 (latest revision is 15)
Matej Cepl's avatar Matej Cepl (mcepl) accepted request 928266 from Benjamin Greiner's avatar Benjamin Greiner (bnavigator) (revision 5)
- Update to v0.4.0
  * Added ItemAdapter.is_item_class and
    ItemAdapter.get_field_meta_from_class (#54)
  * Added built-in support for pydantic models (#53)
  * Adapter interface: added the ability to support arbitrary
    types, by implementing a MutableMapping-based interface. By way
    of this change, now any type can be used as a Scrapy item.
  * Dropped support for Python 3.5 (#38).
  * The new get_field_meta_from_class function offers the same
    functionality as ItemAdapter.get_field_meta but for an item
    class, as opposed to an item object (#34, #35).
  * ItemAdapter.__repr__ no longer raises exceptions caused by the
    underlying item (#31, #41).
- Disable python36 build due to Scrapy
Comments 0
openSUSE Build Service is sponsored by