Deprecated since version 3.11, will be removed in version 3.13: The cgi module is deprecated (see PEP 594 for details and alternatives).
cgi.parse_multipart() is currently used in input_format.py, for example.
As a side note, this use also causes issues if you are trying to upload several GiB of data through a POST. The documentation for the method says:
This is easy to use but not much good if you are expecting megabytes to be uploaded — in that case, use the FieldStorage class instead which is much more flexible.
For hug the best option seems to be to use email.message instead.
Source for the information: https://docs.python.org/3/library/cgi.html
cgi.parse_multipart()
is currently used ininput_format.py
, for example.As a side note, this use also causes issues if you are trying to upload several GiB of data through a
POST
. The documentation for the method says:For hug the best option seems to be to use
email.message
instead.