schema
– Schema Decorator
This module contains the schema decorator. Users of PyFactory
should instead import schema()
directly from
pyfactory
.
-
pyfactory.schema.
schema
(model=None)[source]
Decorator to mark a method in a Factory
as a schema.
This decorator has no effect on functions which aren’t part of a
subclass of Factory
.