Usage¶
Jetpacks are used for grouping, labeling and making components ready for registration
with an Application
.
API
Important
The Jetpack’s __init__.py file must have a __version__
variable set to be successfully registered with an Application.
Example
from facture import Jetpack
from jet_guestbook import service
from .service import VisitService, VisitorService
from .model import VisitModel, VisitorModel
from .controller import Controller
__version__ = '0.1.0'
export = Jetpack(
controller=Controller,
services=[VisitService, VisitorService],
models=[VisitModel, VisitorModel],
name='guestbook',
description='Example guestbook package'
)