https://github.com/crosbymichael/mimeparse
mimeparse remote repository with Python 3 support Learn more at https://code.google.com/p/mimeparse/
https://github.com/crosbymichael/mimeparse
Last synced: 3 months ago
JSON representation
mimeparse remote repository with Python 3 support Learn more at https://code.google.com/p/mimeparse/
- Host: GitHub
- URL: https://github.com/crosbymichael/mimeparse
- Owner: crosbymichael
- Created: 2013-04-01T01:01:58.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-04-01T01:02:13.000Z (about 12 years ago)
- Last Synced: 2024-12-30T01:20:01.176Z (5 months ago)
- Language: Python
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
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 simplejsonRun the tests by typing:
python mimeparse_test.py