ApplicationΒΆ

At a minimum, the jetfactory.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 jetfactory.Application and jetfactory.Application.run() can be configured using the environment and files as well.

Read more about this in the Configuration section.

Example

import jetfactory
import jet_apispec
import jet_guestbook

# Create application
app = jetfactory.Application(
    path='/api',
    packages=[
        ('/guestbook', jet_guestbook),
        ('/packages', jet_apispec)
    ]
)

# Start server
app.run(host='192.168.0.1')