Skip to content

v0.17.0

Compare
Choose a tag to compare
@yukinarit yukinarit released this 25 May 05:39
· 105 commits to main since this release
fb284ef

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

Full Changelog: v0.16.1...v0.17.0