Skip to content

hydrogen18/multipart-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multipart form data parser for python

A python module of Igor Afonov's multipart-parser-c.

This module leverages the state machine written in C code to provide a multipart/form-data parser to python code. This module reads from any iterable object passed to it. It avoids the need to read the entire structure into memory by returning iterators. This allows stream-to-disk or stream-to-database operations to be implemented in Python code only.

Example usage of parsing a POST request and saving each part to disk is shown in example/saveUpload.py. It starts an HTTP server on port 8080 of the localhost that saves all parts of the multipart upload to separate files on disk.

About

Http multipart parser for python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 83.6%
  • Python 16.4%