tuswsgi


Nametuswsgi JSON
Version 0.5.5 PyPI version JSON
download
home_pagehttps://github.com/mvdbeek/tusfilter
Summarypython wsgi filter for tus protocol 1.0.0
upload_time2023-03-15 11:04:52
maintainer
docs_urlNone
authorMarius van den Beek
requires_python
licenseMIT
keywords tus wsgi filter
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            =========
tusfilter
=========

python wsgi filter for tus protocol 1.0.0, `the tus resumable upload standard`_.

Fork of https://github.com/everydo/tusfilter with bugfixes for WebOb Request usage.

.. _the tus resumable upload standard: http://tus.io/


install
-------

::

    pip install tuswsgi


Arguments
---------

app
    required, the wsgi server application

upload_path
    ``str``, required, path of the upload service

tmp_dir
    ``str``, optional, directory to store temporary files, default ``/upload``

expire
    ``int``, optional, how long before cleanup old uploads in seconds, default ``60*60*60``

send_file
    ``bool``, optional, ``False`` for send the absolute filepath in ``tmp_dir`` in the request body,
    ``True`` for an actual file uploaded, default ``False``

max_size
    ``int``, optional, maximum size of uploads in bytes, default ``2**30``, 1G


Example
-------

flask ::

    from tuswsgi import TusMiddleware
    from flask import Flask

    app = Flask(__name__)

    @app.route("/upload_resumable/<tmpfile>", methods=['PATCH'])
    def upload_resumable(tmpfile):
        # do something else
        return 'End of upload'

    app.wsgi_app = TusMiddleware(
        app.wsgi_app,
        upload_path='/upload_resumable',
        tmp_dir='/tmp/upload',
    )


History
-------


---------------------
0.5.5 (2023-03-15)
---------------------
* Don't cleanup uploaded files on every POST request.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mvdbeek/tusfilter",
    "name": "tuswsgi",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "tus wsgi filter",
    "author": "Marius van den Beek",
    "author_email": "m.vandenbeek@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/58/d3/30aeea1e06544b304e5f00ae77337df9060112ee327988f5c9b7b68f33ad/tuswsgi-0.5.5.tar.gz",
    "platform": null,
    "description": "=========\ntusfilter\n=========\n\npython wsgi filter for tus protocol 1.0.0, `the tus resumable upload standard`_.\n\nFork of https://github.com/everydo/tusfilter with bugfixes for WebOb Request usage.\n\n.. _the tus resumable upload standard: http://tus.io/\n\n\ninstall\n-------\n\n::\n\n    pip install tuswsgi\n\n\nArguments\n---------\n\napp\n    required, the wsgi server application\n\nupload_path\n    ``str``, required, path of the upload service\n\ntmp_dir\n    ``str``, optional, directory to store temporary files, default ``/upload``\n\nexpire\n    ``int``, optional, how long before cleanup old uploads in seconds, default ``60*60*60``\n\nsend_file\n    ``bool``, optional, ``False`` for send the absolute filepath in ``tmp_dir`` in the request body,\n    ``True`` for an actual file uploaded, default ``False``\n\nmax_size\n    ``int``, optional, maximum size of uploads in bytes, default ``2**30``, 1G\n\n\nExample\n-------\n\nflask ::\n\n    from tuswsgi import TusMiddleware\n    from flask import Flask\n\n    app = Flask(__name__)\n\n    @app.route(\"/upload_resumable/<tmpfile>\", methods=['PATCH'])\n    def upload_resumable(tmpfile):\n        # do something else\n        return 'End of upload'\n\n    app.wsgi_app = TusMiddleware(\n        app.wsgi_app,\n        upload_path='/upload_resumable',\n        tmp_dir='/tmp/upload',\n    )\n\n\nHistory\n-------\n\n\n---------------------\n0.5.5 (2023-03-15)\n---------------------\n* Don't cleanup uploaded files on every POST request.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "python wsgi filter for tus protocol 1.0.0",
    "version": "0.5.5",
    "split_keywords": [
        "tus",
        "wsgi",
        "filter"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8eafea49bc32d90160dc38e6191eef426e3396e63f29ad2adc707fe3179df51c",
                "md5": "e2d9ceabae13944b6d267bb66d80b9ba",
                "sha256": "10dddb1ae8ee5faa65069a9d6f178c08551fad45cf17c158df6c7d1e19f964c4"
            },
            "downloads": -1,
            "filename": "tuswsgi-0.5.5-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e2d9ceabae13944b6d267bb66d80b9ba",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 6899,
            "upload_time": "2023-03-15T11:04:50",
            "upload_time_iso_8601": "2023-03-15T11:04:50.413696Z",
            "url": "https://files.pythonhosted.org/packages/8e/af/ea49bc32d90160dc38e6191eef426e3396e63f29ad2adc707fe3179df51c/tuswsgi-0.5.5-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "58d330aeea1e06544b304e5f00ae77337df9060112ee327988f5c9b7b68f33ad",
                "md5": "0ba8ae1c100ad79d2f6c24453a1a59f5",
                "sha256": "f3dccd11f8a8f63c9822321f3640a348b5d63020f1d1bd625c79b2667aa9bf3f"
            },
            "downloads": -1,
            "filename": "tuswsgi-0.5.5.tar.gz",
            "has_sig": false,
            "md5_digest": "0ba8ae1c100ad79d2f6c24453a1a59f5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 7466,
            "upload_time": "2023-03-15T11:04:52",
            "upload_time_iso_8601": "2023-03-15T11:04:52.059786Z",
            "url": "https://files.pythonhosted.org/packages/58/d3/30aeea1e06544b304e5f00ae77337df9060112ee327988f5c9b7b68f33ad/tuswsgi-0.5.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-15 11:04:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "mvdbeek",
    "github_project": "tusfilter",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "tuswsgi"
}
        
Elapsed time: 0.05132s