./textproc/py-itemadapter, Wrapper providing a common interface for objects of different types

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.9.0, Package name: py312-itemadapter-0.9.0, Maintainer: pkgsrc-users

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:
o dict
o scrapy.item.Item
o dataclass-based classes
o attrs-based classes


Required to run:
[lang/python310]

Master sites:

Filesize: 18.479 KB

Version history: (Expand)


CVS history: (Expand)


   2023-04-27 11:05:50 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-itemadapter: updated to 0.8.0

0.8.0 (2023-03-30)

Dropped Python 3.6 support, and made Python 3.11 support official

It is now possible to declare custom ItemAdapter subclasses with their own \ 
ADAPTER_CLASSES attribute, allowing to support different item types in different \ 
parts of the same code base

Improved type hint support
   2022-12-12 15:17:11 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-itemadapter: updated to 0.7.0

0.7.0 (2022-08-02)

ItemAdapter.get_field_names_from_class

0.6.0 (2022-05-12)

Slight performance improvement

0.5.0 (2022-03-18)

Improve performance by removing imports inside functions

0.4.0 (2021-08-26)

Added ItemAdapter.is_item_class and ItemAdapter.get_field_meta_from_class

0.3.0 (2021-07-15)

Added built-in support for pydantic models
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-10-26 13:23:42 by Nia Alarie | Files touched by this commit (1161)
Log message:
textproc: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Unfetchable distfiles (fetched conditionally?):
./textproc/convertlit/distinfo clit18src.zip
   2021-10-07 17:02:49 by Nia Alarie | Files touched by this commit (1162)
Log message:
textproc: Remove SHA1 hashes for distfiles
   2021-03-21 22:11:41 by =?UTF-8?B?RnLDqWTDqXJpYyBGYXViZXJ0ZWF1?= | Files touched by this commit (1)
Log message:
py-itemadapter: Fix comment
   2021-03-21 22:09:51 by =?UTF-8?B?RnLDqWTDqXJpYyBGYXViZXJ0ZWF1?= | Files touched by this commit (4)
Log message:
py-itemadapter: Added version 0.2.0

textproc/py-itemadapter is a dependency of www/py-scrapy.