{ "info": { "author": "Nathan Reynolds", "author_email": "email@nreynolds.co.uk", "bugtrack_url": null, "classifiers": [], "description": "django-processedfilefield: Post-processing for Django FileFields. Takes a dict\nof field names on the model, mapped to post-processing functions. These\nfunctions could convert a PDF to text, thumbnail an image, etc.\n\nExample:\n >>> class TestModel(models.Model):\n ... content = ProcessedFileField(upload_to='content', variations=dict(\n ... content_first_10_bytes=lambda file: file.read()[:10]\n ... ))\n ... content_first_10_bytes = models.FileField(upload_to='content_first_10_bytes')\n ... \n >>> obj = TestModel.objects.create()\n >>> obj.content = ContentFile('abcdefghijklmnopqrstuvwxyz')\n >>> obj.content.name = 'alphabet'\n >>> obj.save()\n >>> \n >>> assert obj.content_first_10_bytes.read() == 'abcdefghij'", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nathforge/django-processedfilefield", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-processedfilefield", "package_url": "https://pypi.org/project/django-processedfilefield/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-processedfilefield/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/nathforge/django-processedfilefield" }, "release_url": "https://pypi.org/project/django-processedfilefield/0.2/", "requires_dist": null, "requires_python": null, "summary": "Post-processing for Django FileFields.", "version": "0.2" }, "last_serial": 790341, "releases": { "0.1": [], "0.2": [ { "comment_text": "", "digests": { "md5": "2cb4bf411bdc59ada86335b69761f23c", "sha256": "205c97cfa079bc0ea18e53e22a4590b6dd411bfcb19e4343bbc3cc0f4be65a5c" }, "downloads": -1, "filename": "django-processedfilefield-0.2.tar.gz", "has_sig": false, "md5_digest": "2cb4bf411bdc59ada86335b69761f23c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2205, "upload_time": "2011-10-28T10:37:42", "url": "https://files.pythonhosted.org/packages/e2/cb/8892b06165d700eeee923d226468105ce7edf6bc5a49063057fa334a0daa/django-processedfilefield-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2cb4bf411bdc59ada86335b69761f23c", "sha256": "205c97cfa079bc0ea18e53e22a4590b6dd411bfcb19e4343bbc3cc0f4be65a5c" }, "downloads": -1, "filename": "django-processedfilefield-0.2.tar.gz", "has_sig": false, "md5_digest": "2cb4bf411bdc59ada86335b69761f23c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2205, "upload_time": "2011-10-28T10:37:42", "url": "https://files.pythonhosted.org/packages/e2/cb/8892b06165d700eeee923d226468105ce7edf6bc5a49063057fa334a0daa/django-processedfilefield-0.2.tar.gz" } ] }