Files
kittycad.py/kittycad/models/raw_file.py
Jess Frazelle 2b44cdfb96 updates
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2024-07-28 15:21:51 -07:00

14 lines
326 B
Python

from pydantic import BaseModel, ConfigDict
class RawFile(BaseModel):
"""A raw file with unencoded contents to be passed over binary websockets. When raw files come back for exports it is sent as binary/bson, not text/json."""
contents: bytes
name: str
model_config = ConfigDict(protected_namespaces=())