MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / to_dict

Method to_dict

src/core/db/entity.py:8–9  ·  view source on GitHub ↗
(self, camel: bool = False)

Source from the content-addressed store, hash-verified

6
7class Entity(DeclarativeBase):
8 def to_dict(self, camel: bool = False) -> dict[str, Any]:
9 return {to_camel(col.name) if camel else col.name: getattr(self, col.name) for col in self.__table__.columns}

Callers 2

data_to_resourceMethod · 0.45
send_emailMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected