$ pip install falcon
$ python3 app.py
alternatively with Gunicorn (for HTTP/1.1):
$ pip install gunicorn
$ gunicorn app:app
from tiddlyweb.util import merge_config | |
from tiddlyweb.config import config as global_config | |
from tiddlywebconfig import config as custom_config | |
print "BEFORE: custom", custom_config["instance_tiddlers"] | |
print "BEFORE: global", global_config["instance_tiddlers"] | |
merge_config(global_config, custom_config) |
*.pyc |
from tiddlyweb import control | |
from tiddlywebplugins.utils import get_store | |
from tiddlyweb.store import Store, NoBagError,NoTiddlerError | |
from tiddlyweb.model.bag import Bag | |
from tiddlyweb.model.recipe import Recipe | |
from tiddlyweb.model.tiddler import Tiddler | |
def mytest(environ, start_response): | |
start_response('200 OK', [ | |
('Content-Type', 'text/html; charset=utf-8') |
#!/bin/sh | |
USAGE="Usage: `basename $0` <src_space_url> <src_space> <src_user> <src_pwd> <dest_space_url> <dest_space> <dest_user> <dest_pwd>" | |
if [ $# -ne 8 ]; then | |
echo $USAGE >&2 | |
exit 1 | |
fi | |
SRC_SPACE_URL=$1 |
from hook import register_import_hook | |
print('calling to register') | |
register_import_hook() | |
print('registered') | |
def later(): | |
import test_foo |
$ python3 -m venv venv
$ . venv/bin/activate
$ pip install js2py gunicorn
$ gunicorn app:app