{ "info": { "author": "Huw Jones", "author_email": "huwcbjones@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Copyright (c) 2018 Huw Jones\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.\n\nDownload-URL: https://github.com/huwcbjones/py-flowjs/archive/master.zip\nDescription: flow.js python server\n =======================\n \n Python library for handling chunk uploads (based on flow-php-server). Library contains helper methods for:\n * Testing if uploaded file chunk exists.\n * Validating file chunk\n * Creating separate chunks folder\n * Validating uploaded chunks\n * Merging all chunks to a single file\n \n The library currently only supports Tornado, but it is trivial to implement interfaces for other web servers (flask, etc).\n \n This library is compatible with HTML5 file upload library: https://github.com/flowjs/flow.js\n \n How to get started?\n --------------\n Install the pip module:\n ```\n pip install flowjs\n ```\n \n Create a new py file named `upload.py`:\n ```python\n # Import flowjs\n import uuid\n import os\n \n import flowjs\n \n config = flowjs.Config()\n request = flowjs.requests.TornadoRequest(tornado_http_request)\n upload_directory = \"/path/to/final/upload/directory\"\n upload_file_name = uuid.uuid1().hex + \"_\" + request.get_file_name()\n upload_path = os.path.join(upload_directory, upload_file_name)\n try:\n result = flowjs.save(upload_path, config, request)\n if result:\n # file was saved to path\n pass\n else:\n # not final chunk or invalid request\n pass\n except flowjs.NoContent:\n # Set status to 204 No Content\n # Do _not_ return any content in the response body\n except flowjs.BadRequest:\n # Set status to 400 Bad Request\n ```\n \n Config\n ------\n \n ## tempDir\n Temporary directory where chunks are stored (will default to your system temp dir).\n \n Make sure that the temp path exists and is writable. All chunks will be saved in this folder.\n \n \n ## hashNameCallback\n Function applied to the request to generate a unique identifier for the file.\n \n Defaults to a SHA1 hash of the `flowIdentifier`\n \n \n ## preProcessCallback\n Function applied before each chunk is merged into the resultant file.\n \n \n ## deleteChunksOnSave\n Should the server delete the file chunks after it saves the final file.\n \n Defaults to `True`\n \n \n Other Web Servers\n -----------------\n \n To use this module with other webservers, implement the `IRequest` and `IFile` interfaces with your webserver's specific implementation details.\n \n Contribution\n ------------\n \n Your participation in development is very welcome!\n \nPlatform: any\nClassifier: License :: OSI Approved :: MIT License\nClassifier: Development Status :: 5 - Production/Stable\nClassifier: Operating System :: OS Independent\nClassifier: Programming Language :: Python :: 3\nClassifier: Intended Audience :: Developers\nClassifier: Topic :: Internet\nClassifier: Topic :: Internet :: WWW/HTTP\nClassifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers\nClassifier: Topic :: Software Development :: Libraries\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/huwcbjones/py-flowjs", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "flowjs", "package_url": "https://pypi.org/project/flowjs/", "platform": "", "project_url": "https://pypi.org/project/flowjs/", "project_urls": { "Homepage": "https://github.com/huwcbjones/py-flowjs" }, "release_url": "https://pypi.org/project/flowjs/0.1.1/", "requires_dist": [ "filelock" ], "requires_python": "", "summary": "Python server implementation for flow.js upload library", "version": "0.1.1" }, "last_serial": 4180332, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "c0dc1d4e0d8f64153c0bd4bad2ac4897", "sha256": "24a29f7fb3f3112f5ec66eaeda5388adb7a0948a790e80f24eb0b6ad52566779" }, "downloads": -1, "filename": "flowjs-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "c0dc1d4e0d8f64153c0bd4bad2ac4897", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 9838, "upload_time": "2018-07-24T15:08:38", "url": "https://files.pythonhosted.org/packages/c0/2c/c0c88990c04a0f303ff48c46cd1f4b5d5c35d96c59af25d77733c421ad58/flowjs-0.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1e6320af3fd4a3d6aa185378a6e92e3d", "sha256": "da9e2613ff580ee803c285a1db313c8b69138cf83a55e9ac2792caa526fb54d5" }, "downloads": -1, "filename": "flowjs-0.1.0.tar.gz", "has_sig": false, "md5_digest": "1e6320af3fd4a3d6aa185378a6e92e3d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6173, "upload_time": "2018-07-24T15:08:41", "url": "https://files.pythonhosted.org/packages/34/1f/c18cec872ec4e54d313341c1fe572ad4ad33004f888642006854ef9613e2/flowjs-0.1.0.tar.gz" } ], "0.1.0a1": [ { "comment_text": "", "digests": { "md5": "09c35d63585babff71ba128df4378d1d", "sha256": "33df2e45a77d7a9a83772295c8568feac116d08192f77fdc07f97662da7cbf93" }, "downloads": -1, "filename": "flowjs-0.1.0a1-py3-none-any.whl", "has_sig": false, "md5_digest": "09c35d63585babff71ba128df4378d1d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2937, "upload_time": "2018-07-24T14:13:25", "url": "https://files.pythonhosted.org/packages/a2/81/7382138d3711c6327f65f158ad03c70125459d3edf03d0ea1ef022945e73/flowjs-0.1.0a1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "203e2e5e443d83a5db5634b873ae9bb9", "sha256": "015086fff7c79f4eec04b38bd0fe7fb882787a16cb9b27155fb978f04e0e0297" }, "downloads": -1, "filename": "flowjs-0.1.0a1.tar.gz", "has_sig": false, "md5_digest": "203e2e5e443d83a5db5634b873ae9bb9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3344, "upload_time": "2018-07-24T14:13:26", "url": "https://files.pythonhosted.org/packages/23/5c/b151eab23ad446197b6aca95b387d5197e164fe58111eb9c1ea1529144b8/flowjs-0.1.0a1.tar.gz" } ], "0.1.0a2": [ { "comment_text": "", "digests": { "md5": "84d686ab83d795580af4a3673b98b6e5", "sha256": "afcf511f691c14bce1e6403a8cc8365e2e4a06fa11a9b1ad87bc5112df4abc03" }, "downloads": -1, "filename": "flowjs-0.1.0a2-py3-none-any.whl", "has_sig": false, "md5_digest": "84d686ab83d795580af4a3673b98b6e5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2938, "upload_time": "2018-07-24T14:15:52", "url": "https://files.pythonhosted.org/packages/0b/31/03577cba78076710069f34dd01598edb4b441654164b7a1a47535f185319/flowjs-0.1.0a2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d921eddd37afc2c13f0a06da2da93c66", "sha256": "40825954cc6c408de700d5815c0b86b3afa25e8b278b20a1f6214c1349bd3539" }, "downloads": -1, "filename": "flowjs-0.1.0a2.tar.gz", "has_sig": false, "md5_digest": "d921eddd37afc2c13f0a06da2da93c66", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3375, "upload_time": "2018-07-24T14:15:53", "url": "https://files.pythonhosted.org/packages/a1/87/e050b660485c27ef246121ecf3ba0c557f7e2e6227ce69de8d58959c1d3f/flowjs-0.1.0a2.tar.gz" } ], "0.1.0a3": [ { "comment_text": "", "digests": { "md5": "59f657967dcf6a54ec14db2b9b8e0c5e", "sha256": "b02ba4c53065231ae4228a34b1f57288fa48ed7244b12c41a2869c0b00401fdf" }, "downloads": -1, "filename": "flowjs-0.1.0a3-py2-none-any.whl", "has_sig": false, "md5_digest": "59f657967dcf6a54ec14db2b9b8e0c5e", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 9858, "upload_time": "2018-07-24T14:49:33", "url": "https://files.pythonhosted.org/packages/68/57/f367dba185e86c44897b104cb2196e716325c2c89a9fec676fbe761d629d/flowjs-0.1.0a3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5eb9364431ba5ca281f4d45535a94e0a", "sha256": "c4d8226d268af34441e206ed4709c05b955f8cd72a04daaaf7f22deba281631e" }, "downloads": -1, "filename": "flowjs-0.1.0a3.tar.gz", "has_sig": false, "md5_digest": "5eb9364431ba5ca281f4d45535a94e0a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6174, "upload_time": "2018-07-24T14:49:35", "url": "https://files.pythonhosted.org/packages/66/78/71dc49db7ac833f72c15355fce49c41242c0b4c4491efe969615c999780d/flowjs-0.1.0a3.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "c961aa2bfafa91bb60d8f92a6f51e784", "sha256": "1816d1dbbc40f8db5b845838f7928639db719c00b70f6c1cbb4c1198b65bdf49" }, "downloads": -1, "filename": "flowjs-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "c961aa2bfafa91bb60d8f92a6f51e784", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7172, "upload_time": "2018-08-17T13:51:43", "url": "https://files.pythonhosted.org/packages/1c/11/e4cad7e72f83e5f64454db1bc501ea5be9f5195ce01fa549ada869baddad/flowjs-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "076577f177759d98a1b2ba5e99175c0b", "sha256": "fc9d81992ed7aa2377de2c1f8e194a718f03b4e19b321864405a0b839e792da9" }, "downloads": -1, "filename": "flowjs-0.1.1.tar.gz", "has_sig": false, "md5_digest": "076577f177759d98a1b2ba5e99175c0b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6156, "upload_time": "2018-08-17T13:51:45", "url": "https://files.pythonhosted.org/packages/e2/5e/0cd0c5f83f9204f8de22c76a9009c3513f78932dc84732bee74a8a55ce01/flowjs-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c961aa2bfafa91bb60d8f92a6f51e784", "sha256": "1816d1dbbc40f8db5b845838f7928639db719c00b70f6c1cbb4c1198b65bdf49" }, "downloads": -1, "filename": "flowjs-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "c961aa2bfafa91bb60d8f92a6f51e784", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7172, "upload_time": "2018-08-17T13:51:43", "url": "https://files.pythonhosted.org/packages/1c/11/e4cad7e72f83e5f64454db1bc501ea5be9f5195ce01fa549ada869baddad/flowjs-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "076577f177759d98a1b2ba5e99175c0b", "sha256": "fc9d81992ed7aa2377de2c1f8e194a718f03b4e19b321864405a0b839e792da9" }, "downloads": -1, "filename": "flowjs-0.1.1.tar.gz", "has_sig": false, "md5_digest": "076577f177759d98a1b2ba5e99175c0b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6156, "upload_time": "2018-08-17T13:51:45", "url": "https://files.pythonhosted.org/packages/e2/5e/0cd0c5f83f9204f8de22c76a9009c3513f78932dc84732bee74a8a55ce01/flowjs-0.1.1.tar.gz" } ] }