fireworks.flask_site package

Submodules module

Sends a 401 response that enables basic auth, password)

This function is called to check if a username / password combination is valid., sorting_key='_id', sorting_order='DESCENDING'), coll), singular='', plural='s'), num_intervals), interval, num_intervals), value, state), sorting_key='_id', sorting_order='DESCENDING')

fireworks.flask_site.gunicorn module

class fireworks.flask_site.gunicorn.StandaloneApplication(app, options=None)


__init__(app, options=None)

Initialize self. See help(type(self)) for accurate signature.


This method is used to load the configuration from one or several input(s). Custom Command line, configuration file. You have to override this method in your class.


fireworks.flask_site.helpers module

fireworks.flask_site.helpers.fw_filt_given_wf_filt(filt, lp)
fireworks.flask_site.helpers.get_totals(states, lp)
fireworks.flask_site.helpers.uses_index(filt, coll)
fireworks.flask_site.helpers.wf_filt_given_fw_filt(filt, lp)

fireworks.flask_site.util module

class fireworks.flask_site.util.MongoJsonEncoder(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)

Bases: json.encoder.JSONEncoder


Implement this method in a subclass such that it returns a serializable object for o, or calls the base implementation (to raise a TypeError).

For example, to support arbitrary iterators, you could implement default like this:

def default(self, o):
        iterable = iter(o)
    except TypeError:
        return list(iterable)
    # Let the base class default method raise the TypeError
    return JSONEncoder.default(self, o)
fireworks.flask_site.util.jsonify(*args, **kwargs)

flask.json.jsonify with cls=MongoJsonEncoder passed to flask.json.dumps

Body copied from flask==1.0.2 (latest);

Module contents