Skip to main content

This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1

Contents:
  • parse_mime_type(): Parses a mime-type into its component parts.

  • parse_media_range(): Media-ranges are mime-types with wild-cards and a ‘q’ quality parameter.

  • quality(): Determines the quality (‘q’) of a mime-type when compared against a list of media-ranges.

  • quality_parsed(): Just like quality() except the second parameter must be pre-parsed.

  • best_match(): Choose the mime-type with the highest quality (‘q’) from a list of candidates.

Metadata

Release files for mimeparse-ng 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mimeparse-ng 0.1.4
File Size Uploaded Provenance
mimeparse-ng-0.1.4.tar.gz 4.6 kB Without provenance Details

Release files / mimeparse-ng-0.1.4.tar.gz

Download URL mimeparse-ng-0.1.4.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5c2c7dd2e203cea17cdda01b700130271774a937ae8ccb2ee7b55e15eb311f5e
BLAKE2b-256 checksum
How to use checksums
decec16c37a2bc425e0ca6403a57a58559a9faba2c3acf812f799d0714a94fc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for mimeparse-ng 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.4 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page