submit

Module Contents

Classes

MultiPartForm

Accumulate the data to be used when posting a form.

Functions

main()

init_config()

submit(filename, task_name, token, contest_url, ...)

query(key, value_friendly_name[, mask_old_value])

create_configuration()

save_configuration()

Attributes

class submit.MultiPartForm

Bases: object

Accumulate the data to be used when posting a form.

static generate_boundary(n=16)

https://stackoverflow.com/a/27174474

get_content_type()
add_field(name, value)

Add a simple field to the form data.

add_file(fieldname, filename, filehandle, mimetype=None)

Add a file to be uploaded.

__str__()

Return a string representing the form data, including attached files.

submit.configuration
submit.config_path
submit.error_code_map
submit.main()
submit.init_config()
submit.submit(filename, task_name, token, contest_url, open_webbrowser)
submit.query(key, value_friendly_name, mask_old_value=False)
submit.create_configuration()
submit.save_configuration()