BSD Ports

devel/py-multipart 0.2.4_1 MidnightBSD

Parser for multipart/form-data

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
mit
Categories
devel, python

Description

Multipart provides a parser for the multipart/form-data format. It can read from a file, a socket or a WSGI environment. The parser can be used to replace cgi.FieldStorage to work around its limitations.

Features:

  • Parses multipart/form-data and application/x-www-form-urlencoded.
  • Produces useful error messages in 'strict'-mode.
  • Gracefully handle uploads of unknown size (missing Content-Length header).
  • Fast memory mapped files (io.BytesIO) for small uploads.
  • Temporary files on disk for big uploads.
  • Memory and disk resource limits to prevent DOS attacks.
  • Fixes many shortcomings and bugs of cgi.FieldStorage.
  • 100% test coverage.

In the other systems

SystemPortVersion
MidnightBSDdevel/py-multipart0.2.4_1
FreeBSDdevel/py-multipart2.0.0
DragonFlydevel/py-multipart1.2.1
HardenedBSDdevel/py-multipart2.0.0
GhostBSDdevel/py-multipart2.0.0

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}multipart

From mports:

cd /usr/mports/devel/py-multipart && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}multipart>0:devel/py-multipart

Dependencies

Required by 1

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
multipart-0.2.4.tar.gz2230006ba205360bc7096fefe618e4f1e9b2cdb890b4f2157053a81f386912a2522cb
Master sites 1
  • PYPI