{ "info": { "author": "Mykyta Paliienko", "author_email": "floyernick@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development" ], "description": "fleep\n=====\n\nFile format determination library for Python\n\n|pypi version| |python version| |license|\n\nGetting Started\n---------------\n\n**fleep** is a library that determines file format by file signature (also known as \"magic number\").\n\nInstallation\n------------\n\nYou can install fleep using *pip*. Simply run in CLI:\n\n::\n\n pip install fleep\n\nRequirements\n------------\n\n- Python >= 3.1\n\nIn Use\n------\n\nfleep has main function *get()* that determines file format. It takes byte sequence (128 bytes are enough) as an argument and returns an instance of class *Info* with the following arguments:\n\n- *type* -> list of suitable file types\n- *extension* -> list of suitable file extensions\n- *mime* -> list of suitable file MIME types\n\nYou may presume that first element in list will be the most suitable.\n\nAlso an instance of class *Info* has the following methods:\n\n- *type_matches()* -> checks if file type matches with given type as an argument\n- *extension_matches()* -> checks if file extension matches with given extension as an argument\n- *mime_matches()* -> checks if file MIME type matches with given MIME type as an argument\n\nThere are 3 more functions:\n\n- *supported_types()* -> returns a list of supported file types\n- *supported_extensions()* -> returns a list of supported file extensions\n- *supported_mimes()* -> returns a list of supported file MIME types\n\nExamples\n--------\n\nYou can find examples in *examples* folder. There is a simple example:\n\n.. code:: python\n\n import fleep\n\n with open(\"png_image\", \"rb\") as file:\n info = fleep.get(file.read(128))\n\n print(info.type) # prints ['raster-image']\n print(info.extension) # prints ['png']\n print(info.mime) # prints ['image/png']\n\n print(info.type_matches(\"raster-image\")) # prints True\n print(info.extension_matches(\"gif\")) # prints False\n print(info.mime_matches(\"image/png\")) # prints True\n\nTests\n-----\n\nYou can find tests in *tests* folder. There are results of speed test:\n\n**Workstation**\n\n- Python 3.6 x64 bit\n- Windows 10 Home x64 bit\n- Intel Pentium G4620 3.70GHz\n- Kingston DDR4-2400 8192MB\n- Kingston SSD 120GB 550MB/s\n\n**Results**\n\n*Note:* 0.0012345 -> time in seconds\n\n+-----------+---------+-----------+-----------+\n| Iteration | Minimum | Maximum | Average |\n+===========+=========+===========+===========+\n| 1 | 0.0 | 0.0005312 | 0.0000851 |\n+-----------+---------+-----------+-----------+\n| 2 | 0.0 | 0.0005360 | 0.0000858 |\n+-----------+---------+-----------+-----------+\n| 3 | 0.0 | 0.0005236 | 0.0000837 |\n+-----------+---------+-----------+-----------+\n| 4 | 0.0 | 0.0005035 | 0.0000833 |\n+-----------+---------+-----------+-----------+\n| 5 | 0.0 | 0.0005295 | 0.0000835 |\n+-----------+---------+-----------+-----------+\n\nSupported Formats\n-----------------\n\nThere is a list of supported formats (in alphabetical order):\n\n*Raster Image:*\n\n- BMP\n- GIF\n- ICO\n- JP2\n- JPEG\n- PNG\n- PSD\n- TIFF\n- WEBP\n\n*Raw Image:*\n\n- ARW\n- CR2\n- CRW\n- DNG\n- ERF\n- NEF\n- NRW\n- ORF\n- PEF\n- RAF\n- RAW\n- RW2\n- SRW\n- X3F\n\n*Vector Image:*\n\n- AI\n- EPS\n\n*3D Image:*\n\n- C4D\n- FBX\n- MA\n- MS3D\n- MTL\n- OBJ\n- PLY\n- WRL\n- X3D\n- XSI\n\n*Audio:*\n\n- AAC\n- AC3\n- AIFF\n- AMR\n- AU\n- FLAC\n- M4A\n- MIDI\n- MKA\n- MP3\n- OGA\n- RA\n- VOC\n- WAV\n- WMA\n\n*Video:*\n\n- 3G2\n- 3GP\n- ASF\n- AVI\n- FLV\n- M4V\n- MKV\n- MOV\n- MP4\n- MPG\n- OGV\n- SWF\n- VOB\n- WEBM\n- WMV\n\n*Document:*\n\n- DOC\n- DOCX\n- EPUB\n- KEY\n- NUMBERS\n- ODP\n- ODS\n- ODT\n- PAGES\n- PDF\n- PPS\n- PPT\n- PPTX\n- RTF\n- XLS\n- XLSX\n- XML\n\n*Archive:*\n\n- 7Z\n- DMG\n- GZ\n- ISO\n- RAR\n- TAR.Z\n- ZIP\n\n*Executable:*\n\n- COM\n- EXE\n- JAR\n\n*Font:*\n\n- OTF\n- TTF\n- WOFF\n- WOFF2\n\n*System:*\n\n- CAB\n- CAT\n- DLL\n- DRV\n- REG\n- SDB\n- SYS\n\n*Database:*\n\n- SQLITE\n\nChangelog\n---------\n\nYou can find changelog in *CHANGELOG.md* file.\n\nLicense\n-------\n\nThis project is licensed under the *MIT License*.\n\nAuthors\n-------\n\n**Mykyta Paliienko** - `GitHub profile`_\n\n.. _GitHub profile: https://github.com/floyernick\n\n.. |pypi version| image:: https://img.shields.io/badge/pypi-v1.0.1-blue.svg\n :target: https://pypi.python.org/pypi/fleep\n.. |python version| image:: https://img.shields.io/badge/python-3-blue.svg\n.. |license| image:: https://img.shields.io/badge/license-MIT-blue.svg\n :target: https://github.com/floyernick/fleep/blob/master/LICENSE", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/floyernick/fleep", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "fleep", "package_url": "https://pypi.org/project/fleep/", "platform": "", "project_url": "https://pypi.org/project/fleep/", "project_urls": { "Homepage": "https://github.com/floyernick/fleep" }, "release_url": "https://pypi.org/project/fleep/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "File format determination library", "version": "1.0.1" }, "last_serial": 3539748, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "a8d0b9b62d2ba54ac06739095bdd73bb", "sha256": "455afc687e90dc8f93c18d30ace0d25e69ed353f9b6fa398b5628d1235d8b036" }, "downloads": -1, "filename": "fleep-0.1.0.tar.gz", "has_sig": false, "md5_digest": "a8d0b9b62d2ba54ac06739095bdd73bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3305, "upload_time": "2017-12-27T21:29:44", "url": "https://files.pythonhosted.org/packages/9c/78/7e9eedeb86adfeb09259853842f9d4b062dc83349c93916e0adb7da650cf/fleep-0.1.0.tar.gz" } ], "0.2.0.0": [ { "comment_text": "", "digests": { "md5": "586d9b88e7bed2710b595b32efec4526", "sha256": "cedb7b35d3eb2357e797b68d2410e49f0d0b57a84b63d1fc1b2c9cb03ba2d27c" }, "downloads": -1, "filename": "fleep-0.2.0.0.tar.gz", "has_sig": false, "md5_digest": "586d9b88e7bed2710b595b32efec4526", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4245, "upload_time": "2017-12-29T11:29:30", "url": "https://files.pythonhosted.org/packages/df/ae/57300f59c0c277b4e4efb3dd2e7cca64ce6b9db8732db894e5794dce2030/fleep-0.2.0.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "b9f889f3b4de6ffe78ad76fd651a1c12", "sha256": "cbd449370f2acc94d0d94ff1d9213b53d5f2cb993ed59ab4f14283b82874ba64" }, "downloads": -1, "filename": "fleep-0.2.1.tar.gz", "has_sig": false, "md5_digest": "b9f889f3b4de6ffe78ad76fd651a1c12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4304, "upload_time": "2017-12-30T20:53:07", "url": "https://files.pythonhosted.org/packages/4b/cc/c51861138b4b461eb5c70f3af97c6d907c30272a2be2a9b9224fb008e31b/fleep-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "9903f92671797a002f065f116a4641fa", "sha256": "45e77d5cb9bf34864782e8b2d5748522b89afe0f4d46b5d2356b4b45c7c34962" }, "downloads": -1, "filename": "fleep-0.3.0.tar.gz", "has_sig": false, "md5_digest": "9903f92671797a002f065f116a4641fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4566, "upload_time": "2017-12-31T09:55:38", "url": "https://files.pythonhosted.org/packages/d6/4d/8112e15f135bcd76e03b5362ce16cb5c8c7a189291bac161a1331d1d6219/fleep-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "b78df78f643e787211ed456eb7249edf", "sha256": "3ea5e5aaae7319e7f2016cc7ebf7b7a31a8ba62dcc50eb5ca968f657ecaf4207" }, "downloads": -1, "filename": "fleep-0.3.1.tar.gz", "has_sig": false, "md5_digest": "b78df78f643e787211ed456eb7249edf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4745, "upload_time": "2018-01-02T12:11:11", "url": "https://files.pythonhosted.org/packages/0c/b9/7974a43b85df5dd0fdbc9388d93adeaf63d7e1cecd8a8c515cbcae74b4b5/fleep-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "c5b0ef3229ae0359080c9942fc2af08e", "sha256": "24bbf45d269e3cd61cce9280607e3b06008d09d8c0b5be22c9252da608123ad9" }, "downloads": -1, "filename": "fleep-0.3.2.tar.gz", "has_sig": false, "md5_digest": "c5b0ef3229ae0359080c9942fc2af08e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4808, "upload_time": "2018-01-02T13:08:49", "url": "https://files.pythonhosted.org/packages/b4/63/2cb9dd0d71e28a4b0a6f079636288c717c10ac265ddefe9887d20557c34e/fleep-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "0a717f6032fdcd433061134b8c798ccd", "sha256": "1c2d2561e3d6421dedfc708ace64d089f716fa0bc0037245413c0993276a8f37" }, "downloads": -1, "filename": "fleep-0.3.3.tar.gz", "has_sig": false, "md5_digest": "0a717f6032fdcd433061134b8c798ccd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4878, "upload_time": "2018-01-02T14:34:21", "url": "https://files.pythonhosted.org/packages/7d/a2/d61c0348d34ee98bdc5062260c738f5607906d620d4c54f2d5b1e0d33738/fleep-0.3.3.tar.gz" } ], "0.3.4": [ { "comment_text": "", "digests": { "md5": "391f699ff5cf780a472127b0d9d6aebc", "sha256": "e09013c6c963b21551c8fedcdaddb7dc35a908386456aa5fea9a4dc07e235a9a" }, "downloads": -1, "filename": "fleep-0.3.4.tar.gz", "has_sig": false, "md5_digest": "391f699ff5cf780a472127b0d9d6aebc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5761, "upload_time": "2018-01-03T16:10:50", "url": "https://files.pythonhosted.org/packages/64/cc/92da10ab191b511abc4a4ff240ff5efffcbcae38b1a285187ec5c0fa9a55/fleep-0.3.4.tar.gz" } ], "0.3.5": [ { "comment_text": "", "digests": { "md5": "a67b3f1f4231af36d5de5f44ef37dbac", "sha256": "f0cbd53291beff44890a38750607b93d8d5adbae2a259e4fc8f45b0a7c9d45be" }, "downloads": -1, "filename": "fleep-0.3.5.tar.gz", "has_sig": false, "md5_digest": "a67b3f1f4231af36d5de5f44ef37dbac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5813, "upload_time": "2018-01-03T17:58:54", "url": "https://files.pythonhosted.org/packages/4e/4a/a3544b7dfd4effea5e0ad12ae07c4e7dfa371b3eb9dcb8f2d723bfc63e42/fleep-0.3.5.tar.gz" } ], "0.3.6": [ { "comment_text": "", "digests": { "md5": "6356da242ba2b9c3f8ad0dc76f461578", "sha256": "2918be2b70089823ce35c4be7d48ae61008ea2da05ad0e96c23eec9b86caacc5" }, "downloads": -1, "filename": "fleep-0.3.6.tar.gz", "has_sig": false, "md5_digest": "6356da242ba2b9c3f8ad0dc76f461578", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6067, "upload_time": "2018-01-04T10:28:13", "url": "https://files.pythonhosted.org/packages/eb/32/941b10ac71dc739f9960c30ac86ff4ec781be681506a9ad29d21b8ca311d/fleep-0.3.6.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "9ebd361806e9066987dbabe7e05f6db7", "sha256": "99ec7c2812ac087459ffd72daa421a7a85074f3d476ed70f562ae6f16c66ba05" }, "downloads": -1, "filename": "fleep-0.4.0.tar.gz", "has_sig": false, "md5_digest": "9ebd361806e9066987dbabe7e05f6db7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6674, "upload_time": "2018-01-04T20:44:06", "url": "https://files.pythonhosted.org/packages/69/2d/3ed45c56504bf8904f26b708665b56998e97a478c456ad0b727b1755c7ab/fleep-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "4cf9722982e1eb32bead50665b152bea", "sha256": "4d1b9a93c758072fef2fe290b5addd1f95970b797c4cda70a2191dd7d72b404e" }, "downloads": -1, "filename": "fleep-0.4.1.tar.gz", "has_sig": false, "md5_digest": "4cf9722982e1eb32bead50665b152bea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6776, "upload_time": "2018-01-05T12:21:47", "url": "https://files.pythonhosted.org/packages/2c/43/e161481cc1afdb0f7d85bf5d174ecde6870d4de642151842d38edbedef90/fleep-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "81e1b86ead086460ea64e8a346f3d027", "sha256": "464ba8d20d1a7a45b11b1542b21dd6a6d3a2c4ec0977c3570d8edca6ac7fbd63" }, "downloads": -1, "filename": "fleep-0.4.2.tar.gz", "has_sig": false, "md5_digest": "81e1b86ead086460ea64e8a346f3d027", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6925, "upload_time": "2018-01-05T14:57:56", "url": "https://files.pythonhosted.org/packages/6d/e3/4a1e12d2bcf8cbc9a2908bf7c07e71f235d68de730085d04842a5a224bc8/fleep-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "fb4d61cacab94b9705af1632ba5f27a1", "sha256": "28cdf037a81da033b260725c17c97767e1ae6bbd09e81de4c2ddbab34bbcd31c" }, "downloads": -1, "filename": "fleep-0.4.3.tar.gz", "has_sig": false, "md5_digest": "fb4d61cacab94b9705af1632ba5f27a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6009, "upload_time": "2018-01-05T21:37:15", "url": "https://files.pythonhosted.org/packages/8d/96/2955d4f008d4cf579dada25451b4b4084cd833ba7a633773a134564da32e/fleep-0.4.3.tar.gz" } ], "0.4.4": [ { "comment_text": "", "digests": { "md5": "03821c7e73323967020c3e3bbda035b2", "sha256": "037a437beac3bf291fba7c3bacc9db72d1bed221ab3932635ca9c863b6c1e4d0" }, "downloads": -1, "filename": "fleep-0.4.4.tar.gz", "has_sig": false, "md5_digest": "03821c7e73323967020c3e3bbda035b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6069, "upload_time": "2018-01-06T14:44:31", "url": "https://files.pythonhosted.org/packages/07/5b/d5573c89681f8f68cbb8ef642ce51e8dc6e20bca06f4f8c6714bee73c96e/fleep-0.4.4.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "75ffd7f4d5a88ae3d30c9f11eee6a262", "sha256": "a04d74845cade8ec46a704440a04e465ae3b5f03f6c0046534a47c27f4f11590" }, "downloads": -1, "filename": "fleep-0.5.0.tar.gz", "has_sig": false, "md5_digest": "75ffd7f4d5a88ae3d30c9f11eee6a262", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6616, "upload_time": "2018-01-07T10:59:22", "url": "https://files.pythonhosted.org/packages/8d/63/9b8eb8395aca74e85df1cc44d4d2f32afbe1899d592bffabdc5b91c1dda0/fleep-0.5.0.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "0dac8b7a71ec74f82902b958218d25fc", "sha256": "bd46a3d94bc3500c566ab9e8d182117de70756540ef722cde204f42a25f1203c" }, "downloads": -1, "filename": "fleep-0.5.1.tar.gz", "has_sig": false, "md5_digest": "0dac8b7a71ec74f82902b958218d25fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6602, "upload_time": "2018-01-07T16:26:06", "url": "https://files.pythonhosted.org/packages/88/7c/abe22be02547eb113169f8f0309d0789613765e312b2669690bef4c51159/fleep-0.5.1.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "f35c442102a35eca2d8c14acaa43ffde", "sha256": "40e39375f053f64aed454dc865e0113e745f0fb8acf48d171292b30d2fc67274" }, "downloads": -1, "filename": "fleep-0.6.0.tar.gz", "has_sig": false, "md5_digest": "f35c442102a35eca2d8c14acaa43ffde", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6584, "upload_time": "2018-01-09T13:14:43", "url": "https://files.pythonhosted.org/packages/39/11/79e6945e7d6692fd55edf3f2f13bb321a2aeb09047e8b42d9b0343db0b3b/fleep-0.6.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "df249625df6722357d4aecfbfb867ae1", "sha256": "c65b07f787d0d0a538bc7a29ca64644a656beccaac9fae5571a1a83d3e80f62b" }, "downloads": -1, "filename": "fleep-1.0.0.tar.gz", "has_sig": false, "md5_digest": "df249625df6722357d4aecfbfb867ae1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6557, "upload_time": "2018-01-24T21:21:21", "url": "https://files.pythonhosted.org/packages/5a/18/eea10fadae2234c454e339fd6fbec1c4c241be4782a3bb979058ae2128f9/fleep-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "5ff92c1a5ee68a16e2fb92e1ab87144b", "sha256": "c8f62b258ee5364d7f6c1ed1f3f278e99020fc3f0a60a24ad1e10846e31d104c" }, "downloads": -1, "filename": "fleep-1.0.1.tar.gz", "has_sig": false, "md5_digest": "5ff92c1a5ee68a16e2fb92e1ab87144b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6547, "upload_time": "2018-01-31T22:08:22", "url": "https://files.pythonhosted.org/packages/7e/dc/4ff28535d084c2cbb99a2298f8b653bdd3fec0076c1a273d3c7a3e9679a5/fleep-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5ff92c1a5ee68a16e2fb92e1ab87144b", "sha256": "c8f62b258ee5364d7f6c1ed1f3f278e99020fc3f0a60a24ad1e10846e31d104c" }, "downloads": -1, "filename": "fleep-1.0.1.tar.gz", "has_sig": false, "md5_digest": "5ff92c1a5ee68a16e2fb92e1ab87144b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6547, "upload_time": "2018-01-31T22:08:22", "url": "https://files.pythonhosted.org/packages/7e/dc/4ff28535d084c2cbb99a2298f8b653bdd3fec0076c1a273d3c7a3e9679a5/fleep-1.0.1.tar.gz" } ] }