beanie_odm_factory¶
- class polyfactory.factories.beanie_odm_factory.BeaniePersistenceHandler[source]¶
- Bases: - Generic[- T],- AsyncPersistenceProtocol[- T]- Persistence Handler using beanie logic 
- class polyfactory.factories.beanie_odm_factory.BeanieDocumentFactory[source]¶
- Bases: - Generic[- T],- ModelFactory[- T]- Base factory for Beanie Documents - __async_persistence__¶
- alias of - BeaniePersistenceHandler
 - __is_base_factory__: bool = True¶
- Flag dictating whether the factory is a ‘base’ factory. Base factories are registered globally as handlers for types. For example, the ‘DataclassFactory’, ‘TypedDictFactory’ and ‘ModelFactory’ are all base factories. 
 - classmethod is_supported_type(value: Any) TypeGuard[type[T]][source]¶
- Determine whether the given value is supported by the factory. - Parameters:
- value¶ – An arbitrary value. 
- Returns:
- A typeguard 
 
 
 
       polyfactory
      polyfactory