{ "info": { "author": "Roberto Rosario", "author_email": "roberto.rosario@mayan-edms.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: POSIX", "Programming Language :: Python" ], "description": ".. image:: https://gitlab.com/mayan-edms/exif/raw/master/contrib/art/logo.png\n\nDescription\n-----------\nMayan EDMS app that extracts image documents' EXIF data.\n\nLicense\n-------\nThis project is open sourced under the `MIT License`_.\n\n.. _`MIT License`: https://gitlab.com/mayan-edms/versionlifespan/raw/master/LICENSE\n\n\nInstallation\n------------\n- Activate the virtualenv where you installed Mayan EDMS.\n- Install from PyPI::\n\n pip install mayan-exif\n\nIn your settings/local.py file add `exif` to your `INSTALLED_APPS` list::\n\n INSTALLED_APPS += (\n 'exif',\n )\n\nRun the migrations for the app::\n\n mayan-edms.py migrate\n\nSettings\n--------\n**EXIF_BACKEND**: Specifies the backend used to extract the EXIF data, default: exif.backends.exiftool.EXIFTool.\n\nRequirements\n------------\n**ExifTool** http://www.sno.phy.queensu.ca/~phil/exiftool/\n\nUsage\n-----\nEXIF data is extracted automatically upon initial document upload or version uploads. The EXIF data is available via the\n.exif_value_of. accessor of the document version model. Example::\n\n {{ document.exif_value_of.FileType }}\n\nor:\n\n {{ document.latest_version.exif_value_of.FileType }}\n\nreturns the 'PNG' string for PNG image files. This accessor can be used anywhere template expressions are used: indexing, smart links, etc.\n\nDevelopment\n-----------\nClone repository in a directory outside of Mayan EDMS::\n\n git clone https://gitlab.com/mayan-edms/exif.git\n\nSymlink the app into your Mayan EDMS' app folder::\n\n ln -s /exif/ /mayan/apps\n\nIn your settings/local.py file add `exif` to your `INSTALLED_APPS` list::\n\n INSTALLED_APPS += (\n 'exif',\n )\n\nRun the migrations for the app::\n\n ./manage.py migrate\n\nEXIF Backends are just a class with a single method called `execute` which receives a document\nversion instance and returns a dictionary of EXIF tags with their corresponding values. The default backend\ncalls `exiftool` using the JSON parameter and then turn that JSON result into a Python dictionary::\n\n class EXIFTool(object):\n def execute(self, document_version):\n new_file_object, temp_filename = tempfile.mkstemp()\n\n try:\n document_version.save_to_file(filepath=temp_filename)\n result = exiftool(temp_filename)\n return json.loads(result.stdout)[0]\n finally:\n fs_cleanup(filename=temp_filename)\n\n\n\n\n1.0.0 (2015-12-22)\n==================\n\n- Initial release", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.com/mayan-edms/exif", "keywords": null, "license": "The MIT License (MIT)\n\nCopyright (c) 2015 Roberto Rosario\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.", "maintainer": null, "maintainer_email": null, "name": "mayan-exif", "package_url": "https://pypi.org/project/mayan-exif/", "platform": "any", "project_url": "https://pypi.org/project/mayan-exif/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://gitlab.com/mayan-edms/exif" }, "release_url": "https://pypi.org/project/mayan-exif/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "EXIF data extraction app for Mayan EDMS.", "version": "1.0.0" }, "last_serial": 1874853, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "ea108211161b5c0d3dd3aaff8e70504d", "sha256": "d296aaca577bcb855230376df10ab844862eb3473b71b05f53a4d59a11d8d732" }, "downloads": -1, "filename": "mayan_exif-1.0.0-py2-none-any.whl", "has_sig": false, "md5_digest": "ea108211161b5c0d3dd3aaff8e70504d", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 14192, "upload_time": "2015-12-23T02:34:30", "url": "https://files.pythonhosted.org/packages/9a/9a/bbd9a15843fac9222e357a2b9fc8abc50ddc57e1b1c8ba8cd4a5c8d2564e/mayan_exif-1.0.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "44831058d7960fc48ac3fdbb4cf15b41", "sha256": "c6ce47182325cb480dcf7cb4048394c854c958e51dbeb5f3b6a6641cb55f3210" }, "downloads": -1, "filename": "mayan-exif-1.0.0.tar.gz", "has_sig": false, "md5_digest": "44831058d7960fc48ac3fdbb4cf15b41", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6952, "upload_time": "2015-12-23T02:33:02", "url": "https://files.pythonhosted.org/packages/10/a1/0452cc8ceff00ce6bfd723287814395ddcaa26ef086376009a05d3e92c0d/mayan-exif-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ea108211161b5c0d3dd3aaff8e70504d", "sha256": "d296aaca577bcb855230376df10ab844862eb3473b71b05f53a4d59a11d8d732" }, "downloads": -1, "filename": "mayan_exif-1.0.0-py2-none-any.whl", "has_sig": false, "md5_digest": "ea108211161b5c0d3dd3aaff8e70504d", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 14192, "upload_time": "2015-12-23T02:34:30", "url": "https://files.pythonhosted.org/packages/9a/9a/bbd9a15843fac9222e357a2b9fc8abc50ddc57e1b1c8ba8cd4a5c8d2564e/mayan_exif-1.0.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "44831058d7960fc48ac3fdbb4cf15b41", "sha256": "c6ce47182325cb480dcf7cb4048394c854c958e51dbeb5f3b6a6641cb55f3210" }, "downloads": -1, "filename": "mayan-exif-1.0.0.tar.gz", "has_sig": false, "md5_digest": "44831058d7960fc48ac3fdbb4cf15b41", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6952, "upload_time": "2015-12-23T02:33:02", "url": "https://files.pythonhosted.org/packages/10/a1/0452cc8ceff00ce6bfd723287814395ddcaa26ef086376009a05d3e92c0d/mayan-exif-1.0.0.tar.gz" } ] }