Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
unistream 0.1.2 documentation
Logo
unistream 0.1.2 documentation
  • About This Project
  • Buffer
  • Producer
  • Checkpoint
  • Consumer
  • Maintainer Guide
    • Project Overview
    • Architecture and Plugin Roadmap
Back to top
View this page

dataclass¶

Implements DataClassRecord, a frozen record built on dataclasses.

class unistream.records.dataclass.DataClassRecord(id: str = <factory>, create_at: str = <factory>)[source]¶

Record built on top of dataclasses.

serialize() → str[source]¶

Serialize the record to a string.

classmethod deserialize(data: str) → DataClassRecord[source]¶

Deserialize the string to a record.

Copyright © 2026, Sanhe Hu
Made with Sphinx and @pradyunsg's Furo
On this page
  • dataclass
    • DataClassRecord
      • DataClassRecord.serialize()
      • DataClassRecord.deserialize()