{ "info": { "author": "Dong-hee Na", "author_email": "donghee.na92@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8" ], "description": "mimesniff\n=========\n.. image:: https://travis-ci.org/corona10/mimesniff.svg?branch=master\n :target: https://travis-ci.org/corona10/mimesniff\n\n.. image:: https://img.shields.io/pypi/v/mimesniff.svg?style=flat\n :target: https://pypi.python.org/pypi/mimesniff\n\nPure python mimesniff implementation of\n`https://mimesniff.spec.whatwg.org`_\n\nAPI interface is similar with `API of python standard library`_\n\nInstall\n-------\n\n.. code:: bash\n\n pip install mimesniff\n\nUsage\n-----\n\n.. code:: python\n\n import mimesniff\n\n res = mimesniff.what('sample.mp3')\n print(res)\n # audio/mpeg\n with open('sample.mp3', 'rb') as fin:\n res = mimesniff.what(fin)\n print(res)\n # audio/mpeg\n\n with open('sample.mp3', 'rb') as fin:\n header = fin.read(512)\n res = mimesniff.what(header)\n print(res)\n # audio/mpeg\n\n.. _`https://mimesniff.spec.whatwg.org`: https://mimesniff.spec.whatwg.org\n.. _API of python standard library: https://docs.python.org/3/library/sndhdr.html\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/corona10/mimesniff", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "mimesniff", "package_url": "https://pypi.org/project/mimesniff/", "platform": "", "project_url": "https://pypi.org/project/mimesniff/", "project_urls": { "Homepage": "https://github.com/corona10/mimesniff" }, "release_url": "https://pypi.org/project/mimesniff/1.1.0/", "requires_dist": null, "requires_python": ">=3.4", "summary": "Pure python mimesniff implementation of https://mimesniff.spec.whatwg.org", "version": "1.1.0" }, "last_serial": 5408133, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "860afa53ad6e97d1946be535904f5188", "sha256": "4187ef8c249d47497d4388d27aa72e35593bc06ca345e748026fc3264a02fa4d" }, "downloads": -1, "filename": "mimesniff-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "860afa53ad6e97d1946be535904f5188", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 4545, "upload_time": "2019-06-16T19:52:22", "url": "https://files.pythonhosted.org/packages/4b/98/6b25cf4be26d986878fa38421db561dc659fef990e5f05869d82b64290ed/mimesniff-1.0.1-py3-none-any.whl" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "01dd0bef6f1ec920556fbad8e3fb77f9", "sha256": "85c14c96052f80aecaf744771f4f72beee93e4d860d3c42742fea12218fb2e51" }, "downloads": -1, "filename": "mimesniff-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "01dd0bef6f1ec920556fbad8e3fb77f9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 7841, "upload_time": "2019-06-17T02:06:15", "url": "https://files.pythonhosted.org/packages/10/32/54e00f6757fc9044a2782a1ce629e4816be5e8c0b830a37095557dc42831/mimesniff-1.1.0-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "01dd0bef6f1ec920556fbad8e3fb77f9", "sha256": "85c14c96052f80aecaf744771f4f72beee93e4d860d3c42742fea12218fb2e51" }, "downloads": -1, "filename": "mimesniff-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "01dd0bef6f1ec920556fbad8e3fb77f9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 7841, "upload_time": "2019-06-17T02:06:15", "url": "https://files.pythonhosted.org/packages/10/32/54e00f6757fc9044a2782a1ce629e4816be5e8c0b830a37095557dc42831/mimesniff-1.1.0-py3-none-any.whl" } ] }