summaryrefslogtreecommitdiff
path: root/mimeparse.py
Commit message (Collapse)AuthorAgeFilesLines
* chore: add github actions (#42)Federico Caselli2021-10-271-8/+3
| | | | | | | * Add github actions Fixes: #39 * Fix workflow
* v1.6.0 (major very bump due to #26)1.6.0Stefan Wojcik2016-10-161-1/+1
|
* let acceptable types specify their quality (#26)Stefan Wójcik2016-10-161-0/+3
|
* v1.5.51.5.5Stefan Wojcik2016-10-101-1/+1
|
* v1.5.41.5.4Stefan Wojcik2016-10-101-1/+1
|
* v1.5.31.5.3Stefan Wojcik2016-09-281-1/+1
|
* extra test based on RFC 7231 page 38Stefan Wojcik2016-09-281-1/+0
|
* cleaner code for quality_and_fitness_parsedStefan Wojcik2016-09-281-14/+33
|
* setup.py sanity check + pep8 tweaks to mimeparse.pyStefan Wojcik2016-09-281-1/+2
|
* setup.py + README tidying (#22)Adam Chainz2016-09-281-20/+0
| | | | | | * Convert `README.md` to `README.rst` since rst is all that PyPI supports * Tidy up README so all functions are explained with their own headers * Use context managers for opening files in `setup.py` * Don't import the code in `setup.py`, which doesn't work on some platforms before it's installed. Instead use parsing of the file to find the version.
* Document return types (#24)Ville Skyttä2016-08-081-1/+13
|
* Handle q parameter name case insensitivelyVille Skyttä2016-05-021-1/+2
| | | | https://tools.ietf.org/html/rfc7231#section-5.3.1
* Handle non-numeric q value gracefullyVille Skyttä2016-05-021-1/+4
|
* Simplify q value validationVille Skyttä2016-05-021-2/+1
|
* Merge pull request #19 from scop/use-cgiStefan Wójcik2016-05-011-5/+2
|\ | | | | Use cgi.parse_header for main type parsing
| * Use cgi.parse_header for main type parsingVille Skyttä2016-04-281-5/+2
| | | | | | | | Adds support for quoted string parameter values.
* | Update RFC links to point to RFC 7231Ville Skyttä2016-04-281-3/+4
|/
* 1.5.2Stefan Wojcik2016-04-261-1/+1
|
* make sure mimeparse gracefully handles an invalid mime type of the form ↵Stefan Wójcik2016-04-201-2/+3
| | | | "text/extra/part" (#14)
* Spelling fix (#15)Ville Skyttä2016-04-201-1/+1
|
* 1.5.1DB Tsai2016-02-021-1/+1
|
* MimeTypeParseException should inherit from ValueErrorStefan Wojcik2016-02-011-1/+1
|
* Merge pull request #11 from scop/versionDB Tsai2016-02-011-1/+1
|\ | | | | Fix mimeparse.__version__, use it in setup.py
| * Fix mimeparse.__version__, use it in setup.pyVille Skyttä2016-02-011-1/+1
| |
* | Remove unnecessary executable permissionsVille Skyttä2016-02-011-0/+0
|/
* py3.2 compatStefan Wojcik2016-01-271-1/+1
|
* raise an exception when the header cannot be parsed + better handling of ↵Stefan Wojcik2016-01-261-0/+8
| | | | unit tests
* pep8 fixesVille Skyttä2016-01-051-1/+1
|
* Fixed Wrong ordering of candidatesD.B. Tsai2012-08-271-5/+5
| | | | | | | | | See https://github.com/dbtsai/python-mimeparse/issues/3 mimeparse.best_match(["image/jpeg", "text/plain"], "text/*;q=0.3, text/html;q=0.7, text/html;level=1, text/html;level=2;q=0.4, */*;q=0.5") Expected: 'image/jpeg' Instead: 'text/plain'
* Fixed that parse_media_range overrides quality values of 0D.B. Tsai2012-08-271-3/+2
| | | | https://github.com/dbtsai/python-mimeparse/issues/1
* Uploaded to PyPI using python-mimeparse as package name.D.B. Tsai2012-08-271-1/+1
|
* Ported to python3k, and added pypy into the tox test automation.D.B. Tsai2012-08-271-1/+2
|
* Fixed ``has_key()`` which is deprecated in python3.D.B. Tsai2012-08-271-13/+13
| | | | Also cleaned up several PEP8 warnings.
* Added tox for automation project testing, and travis-ci for continuous ↵D.B. Tsai2012-08-271-0/+0
| | | | integration
* Clean up comments and formatting to make it PEP8 compatible.Joe Gregorio2012-08-221-66/+99
|
* Fixes issue 7.Joe Gregorio2012-08-221-1/+1
|
* Respect order of supported in the event of a tie.Ed Summers2012-08-221-6/+17
|
* Removed the tests in mimeparse.py since we now have the language independent ↵Ade Oshineye2012-08-221-58/+0
| | | | tests.
* * Add Erlang version of mimeparse.Steve Vinoski2012-08-221-23/+42
| | | | | | * Fix problem in best_match where a wildcard match was being preferred to an exact match. * Handle single star "*" mime_type that Java's URLConnection class emits by turning it into "*/*". * Added unit tests for the changes.
* Initial checkinJoe Gregorio2012-08-221-0/+162