Multipart

pigwig.multipart.parse_multipart(fp, pdict)[source]

most of this code is copied straight from cgi.parse_multipart. the only difference is that it returns a MultipartFile for any part with a filename param in its content-disposition (instead of just the bytes).

class pigwig.multipart.MultipartFile(data, filename)[source]

Bases: object

instance attrs:

  • data - a bytes
  • filename - a str