Module multipartparser
Multi-part parsing for file uploads.
Exposes one class, ``MultiPartParser``, which feeds chunks of uploaded data to
file upload handlers for processing.
source linkClasses
-
A Producer that is sensitive to boundaries.
-
An iterable that will yield chunks of data. Given a file-like object as the constructor, yield chunks of read operations from that object.
-
No more reads are allowed from this device.
-
A Producer that will iterate over boundaries.
-
The LazyStream wrapper allows one to get and "unget" bytes from a stream.
-
A rfc2388 multipart/form-data parser.
-
-
Functions
▷ def exhaust(stream_or_iterable) Exhaust an iterator or stream.
▷ def parse_boundary_stream(stream, max_header_size) Parse one and exactly one stream that encapsulates a boundary.