A module provides basic functions for parsing mime-type names and matching them against a list of media-ranges.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lapis-mimeparse-0.1.5.tar.gz.
File metadata
- Download URL: lapis-mimeparse-0.1.5.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.10.6 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1c650526437e3dc55a1334f1b40fe733aa566b4f217c9ef18422a86e4ec953a
|
|
| MD5 |
4f300676e84a0847245ef4f793b2c7ce
|
|
| BLAKE2b-256 |
26aaea02174e241493a6c1bc32c049393756862f34e6317633079ed94519c948
|
File details
Details for the file lapis_mimeparse-0.1.5-py3-none-any.whl.
File metadata
- Download URL: lapis_mimeparse-0.1.5-py3-none-any.whl
- Upload date:
- Size: 4.5 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cebe3ac40866760107792aa13234ed0ac180087039e3ec28563ba46325a3d31c
|
|
| MD5 |
0ff561a322a9f57cd068eeea37609a9d
|
|
| BLAKE2b-256 |
5ed3468f2048facce24f8b4f28075e38c0050af638e5d59f89a7a46578e84be5
|