mirror of
https://github.com/webrecorder/pywb.git
synced 2025-04-01 19:51:28 +02:00
create 'framework' subpackage for general purpose components! contains routing, request/response, exceptions and wsgi wrappers update framework package for pep8 dsrules: using load_config_yaml() (pushed to utils) to init default config
11 lines
389 B
Python
11 lines
389 B
Python
from pywb.framework.wsgi_wrappers import init_app, start_wsgi_server
|
|
from pywb.core.pywb_init import create_wb_router
|
|
|
|
#=================================================================
|
|
# init pywb app
|
|
#=================================================================
|
|
application = init_app(create_wb_router, load_yaml=True)
|
|
|
|
if __name__ == "__main__":
|
|
start_wsgi_server(application)
|