v0.17.0
What's Changed
pyserde now experimentally support SQLAlchemy integration. Thanks @barsa-net for nice work!
@serde
class User(Base):
__tablename__ = "users"
id: Mapped[int] = mapped_column(primary_key=True)
name: Mapped[str] = mapped_column(Text, nullable=False)
fullname: Mapped[str] = mapped_column(Text, nullable=False)
nickname: Mapped[Optional[str]] = mapped_column(Text)
attributes: Mapped[Optional[dict[str, str]]] = mapped_column(JSON)
projects: Mapped[list[Project]] = relationship(backref="owner")
New features
- feat: add support for SQLAlchemy dataclass-mapped tables by @barsa-net in #518
Build
- Update coverage requirement from ==7.5.0 to ==7.5.1 by @dependabot in #523
- Update pre-commit requirement from ==v3.7.0 to ==v3.7.1 by @dependabot in #526
New Contributors
- @barsa-net made their first contribution in #518
Full Changelog: v0.16.1...v0.17.0