Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.

This module provides basic functions for parsing mime-type names and matching them against a list of media-ranges.

See section 14.1 of RFC 2616 (the HTTP specification) for a complete explanation.

Testing

The format of the JSON test data file is as follows: A top-level JSON object which has a key for each of the functions to be tested. The value corresponding to that key is a list of tests. Each test contains: the argument or arguments to the function being tested, the expected results and an optional description.

Python

The Python tests require either Python 2.6 or the installation of the SimpleJSON library.

Installing SimpleJson can be done by: sudo easy_install simplejson

Run the tests by typing: PYTHONPATH=. python tests/mimeparse_test.py

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lapis-mimeparse-0.1.4.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lapis_mimeparse-0.1.4-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file lapis-mimeparse-0.1.4.tar.gz.

File metadata

  • Download URL: lapis-mimeparse-0.1.4.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.6 Darwin/21.6.0

File hashes

Hashes for lapis-mimeparse-0.1.4.tar.gz
Algorithm Hash digest
SHA256 c343831822c679d47af656a6a794454fa18e4fc05211c99cae5527a5be33346c
MD5 a95990d7ce0d01858ff7b4229f756931
BLAKE2b-256 70833767ffb0f60d8f14f577ff8d76f7554149b0d73009c39a58cdb610e22086

See more details on using hashes here.

File details

Details for the file lapis_mimeparse-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: lapis_mimeparse-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.6 Darwin/21.6.0

File hashes

Hashes for lapis_mimeparse-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1954f72242024a4ad6c2a8e97cfd6f0ff5e00eab5a2c0b63fd530b9a177fa85b
MD5 6ed5dd15148323d028cf7f4a7ab86525
BLAKE2b-256 4e2128416dc91d18609c4204a3b10a9b68853e29d0d21da4bfa168b116c8e40f

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.5

2 files

This release

0.1.4 This release

2 files

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