ApplicationΒΆ
At a minimum, the facture.Application
needs to be created with at least one Jetpack.
Additional parameters can be provided to further customize the instance; see the docs below for more info.
API
Note
The facture.Application
and facture.Application.run()
can be configured using the environment and files as well.
Read more about this in the Configuration section.
Example
import facture
import jet_apispec
import jet_guestbook
# Create application
app = facture.Application(
path='/api',
packages=[
('/guestbook', jet_guestbook),
('/packages', jet_apispec)
]
)
# Start server
app.run(host='192.168.0.1')