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[source]

Bases: object

Accumulate the data to be used when posting a form.

static generate_boundary(n=16)[source]

https://stackoverflow.com/a/27174474

get_content_type()[source]
add_field(name, value)[source]

Add a simple field to the form data.

add_file(fieldname, filename, filehandle, mimetype=None)[source]

Add a file to be uploaded.

__str__()[source]

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

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