types

Application types

Library module for type definitions to be used in the application.

class byte_api.lib.types.SQLAlchemyModelT

Type variable for SQLAlchemy models.

alias of TypeVar(‘SQLAlchemyModelT’, bound=DeclarativeBase)

class byte_api.lib.types.SQLAlchemyAsyncRepoServiceT

Type variable for SQLAlchemy async repository services.

alias of TypeVar(‘SQLAlchemyAsyncRepoServiceT’, bound=SQLAlchemyAsyncRepositoryService)

class byte_api.lib.types.DataclassModelT

Type variable for dataclass models.

alias of TypeVar(‘DataclassModelT’, bound=DataclassProtocol)

class byte_api.lib.types.FilterTypeT

Type variable for filter types.

alias of TypeVar(‘FilterTypeT’, bound=BeforeAfter | OnBeforeAfter | CollectionFilter[Any] | LimitOffset | OrderBy | SearchFilter | NotInCollectionFilter[Any] | NotInSearchFilter | ExistsFilter | NotExistsFilter | ComparisonFilter | MultiFilter | FilterGroup)

class byte_api.lib.types.ModelDTOT

Type variable for models.

alias of TypeVar(‘ModelDTOT’, bound=BaseModel)

class byte_api.lib.types.DTOT

Type variable for DTOs.

alias of TypeVar(‘DTOT’, bound=DataclassProtocol | DeclarativeBase)

class byte_api.lib.types.DTOFactoryT

Type variable for DTO factories.

alias of TypeVar(‘DTOFactoryT’, bound=DataclassDTO | SQLAlchemyDTO)