def cat_new(request):

    sig = request.form.get("sig", None)
    if not sig:
        abort(500)
    thresh = request.form.get("thresh")
    human = request.form.get("human")
    conn = REDIS.conn
    new_cat = category.Category.create(conn, sig)
    if thresh:
        new_cat._set_threshold(thresh)
    if human:
        new_cat._set_human(human)

    return flask.jsonify(new_cat.to_dict())
For creating new signature categories manually.
dataset/ETHPy150Open gmcquillan/firetower/firetower/web/firetower_web.py/cat_new