Backend

wooey.backend.utils.add_wooey_script(script_version=None, script_path=None, group=None, script_name=None)[source]
wooey.backend.utils.create_job_fileinfo(job)[source]
wooey.backend.utils.create_wooey_job(*args, **kwargs)[source]
wooey.backend.utils.get_checksum(path, extra=None)[source]
wooey.backend.utils.get_current_scripts()[source]
wooey.backend.utils.get_file_info(filepath)[source]
wooey.backend.utils.get_file_previews(job)[source]
wooey.backend.utils.get_file_previews_by_ids(ids)[source]
wooey.backend.utils.get_form_groups(script_version=None, pk=None, initial_dict=None, render_fn=None)[source]
wooey.backend.utils.get_grouped_file_previews(files)[source]
wooey.backend.utils.get_job_commands(job=None)[source]
wooey.backend.utils.get_master_form(script_version=None, pk=None)[source]
wooey.backend.utils.get_query(query_string, search_fields)[source]

Returns a query as a combination of Q objects that query the specified search fields.

wooey.backend.utils.get_storage(local=True)[source]
wooey.backend.utils.get_storage_object(path, local=False)[source]
wooey.backend.utils.get_upload_path(filepath, checksum=None)[source]
wooey.backend.utils.mkdirs(path)[source]
wooey.backend.utils.normalize_query(query_string, findterms=<built-in method findall of _sre.SRE_Pattern object>, normspace=<built-in method sub of _sre.SRE_Pattern object>)[source]

Split the query string into individual keywords, discarding spaces and grouping quoted words together.

>>> normalize_query('  some random  words "with   quotes  " and   spaces')
['some', 'random', 'words', 'with quotes', 'and', 'spaces']
wooey.backend.utils.purge_output(job=None)[source]
wooey.backend.utils.reset_form_factory(script_version=None)[source]
wooey.backend.utils.sanitize_name(name)[source]
wooey.backend.utils.sanitize_string(value)[source]
wooey.backend.utils.test_delimited(filepath)[source]
wooey.backend.utils.test_fastx(filepath)[source]
wooey.backend.utils.test_image(filepath)[source]
wooey.backend.utils.valid_user(obj, user)[source]
wooey.backend.utils.validate_form(form=None, data=None, files=None)[source]