BSD Ports

devel/py-multipart 2.0.0 FreeBSD

Parser for multipart/form-data

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
d26bd9712a
License
MIT
Categories
devel, python
Package size
33.9 KiB, 161.5 KiB installed

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
FreeBSDdevel/py-multipart2.0.0
DragonFlydevel/py-multipart1.2.1
MidnightBSDdevel/py-multipart0.2.4_1

Install

Binary package:

pkg install py312-multipart

From the ports tree:

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

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

RUN_DEPENDS=	py312-multipart>0:devel/py-multipart

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.0.02.0.0-1.3.02.0.0
FreeBSD:14:quarterly2.0.02.0.0n/a1.2.12.0.0
FreeBSD:15:latest2.0.02.0.0n/a1.3.01.3.0
FreeBSD:15:quarterly2.0.02.0.0n/an/an/a
FreeBSD:16:latest2.0.02.0.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

The full lists below include those, and their dependencies in turn.

Build dependencies 15
Run dependencies 7

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
multipart-2.0.0.tar.gz42606d6076567b489270271d9ec103d404745da1501ad5b70e3a7f1f07f5623d82850
Master sites 2
  • PYPI
  • https://github.com/defnull/multipart/releases/download/v2.0.0/

Commit history 1

DateCommitCreditsLog message
d26bd9712a Po-Chuan Hsieh devel/py-multipart: Update to 2.0.0
Changes: https://github.com/defnull/multipart/releases https://github.com/defnull/multipart/blob/main/CHANGELOG.rst https://multipart.readthedocs.io/en/latest/changelog.html