cgi3 provides fast and safe parsing of form POST data for Python 3.
Supports large file uploads while keeping memory usage low Written from the ground up to be bytes and encoding aware Byte values can be obtained without ever round-tripping through decoded text Enforceable memory and total upload limits: no use of readline() Simple API for accessing and saving uploaded files cgi3 speed vs. standard library parsers
Test Python 2 cgi.parse Python 2 cgi.FieldStorage Large file upload 1.6x 5x Mixed 1.4x 6x Many small fields 1.4x 3.5x
Benchmarks are of multipart data only. Times for Python 3's cgi.FieldStorage are comparable, but it requires a text stream for input. Python 3's cgi.parse is non-functional.
These details are provided for information only. No information here is legal advice and should not be used as such.