tuspy-fast-api


Nametuspy-fast-api JSON
Version 1.0.4 PyPI version JSON
download
home_pagehttps://github.com/edihasaj/tuspy-fast-api
SummaryTUS py protocol implementation in FastAPI
upload_time2023-01-01 17:46:46
maintainer
docs_urlNone
authorEdi Hasaj
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements fastapi starlette setuptools pydantic
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # FastAPI Tus

FastAPI Extension implementing the Tus.io server protocol

### Prerequisites `FastAPI`

## Installation

Installation from PyPi repository (recommended for latest stable release)

```
pip install tuspy-fast-api
```

## Usage

### main.py

```python
from fastapi import FastAPI
from starlette.middleware.cors import CORSMiddleware
from starlette.staticfiles import StaticFiles

from tus import router

app = FastAPI()
app.add_middleware(
    CORSMiddleware,
    allow_origins=['*'],
    allow_methods=["*"],
    allow_headers=["*"],
)
app.mount("/static", StaticFiles(directory="static"), name="static")
app.include_router(router, prefix="/files")
```

This package has the ability to upload, download, delete (including a scheduler) files.

```python setup.py sdist bdist_wheel```

Any contribution is welcomed.

<a href="https://www.buymeacoffee.com/edihasaj" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-red.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/edihasaj/tuspy-fast-api",
    "name": "tuspy-fast-api",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Edi Hasaj",
    "author_email": "edihasaj@outlook.com",
    "download_url": "https://files.pythonhosted.org/packages/d9/58/7208ca2d966adcd4c3d50cdf116bd3684f2f54816ef65cec8e831e53edaa/tuspy_fast_api-1.0.4.tar.gz",
    "platform": "any",
    "description": "# FastAPI Tus\r\n\r\nFastAPI Extension implementing the Tus.io server protocol\r\n\r\n### Prerequisites `FastAPI`\r\n\r\n## Installation\r\n\r\nInstallation from PyPi repository (recommended for latest stable release)\r\n\r\n```\r\npip install tuspy-fast-api\r\n```\r\n\r\n## Usage\r\n\r\n### main.py\r\n\r\n```python\r\nfrom fastapi import FastAPI\r\nfrom starlette.middleware.cors import CORSMiddleware\r\nfrom starlette.staticfiles import StaticFiles\r\n\r\nfrom tus import router\r\n\r\napp = FastAPI()\r\napp.add_middleware(\r\n    CORSMiddleware,\r\n    allow_origins=['*'],\r\n    allow_methods=[\"*\"],\r\n    allow_headers=[\"*\"],\r\n)\r\napp.mount(\"/static\", StaticFiles(directory=\"static\"), name=\"static\")\r\napp.include_router(router, prefix=\"/files\")\r\n```\r\n\r\nThis package has the ability to upload, download, delete (including a scheduler) files.\r\n\r\n```python setup.py sdist bdist_wheel```\r\n\r\nAny contribution is welcomed.\r\n\r\n<a href=\"https://www.buymeacoffee.com/edihasaj\" target=\"_blank\"><img src=\"https://cdn.buymeacoffee.com/buttons/v2/default-red.png\" alt=\"Buy Me A Coffee\" style=\"height: 60px !important;width: 217px !important;\" ></a>\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "TUS py protocol implementation in FastAPI",
    "version": "1.0.4",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "5645ebdc1e5a1f0f058356d538ca9283",
                "sha256": "1cea894f682a18650efadf3670ab208b1a260484a3e406d9ce926522ac5bee8f"
            },
            "downloads": -1,
            "filename": "tuspy_fast_api-1.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5645ebdc1e5a1f0f058356d538ca9283",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 2740,
            "upload_time": "2023-01-01T17:46:44",
            "upload_time_iso_8601": "2023-01-01T17:46:44.817458Z",
            "url": "https://files.pythonhosted.org/packages/3b/95/d1ccc9d21a1a5e7f22d942b11cf7df7675795c0a603d938d813150b09f38/tuspy_fast_api-1.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "d748dfeab9b806f708e42c4d1cee27b5",
                "sha256": "9a70cb8fc5d607f23abb0e4f199141a31a95dcb979d2c2104d19add79e528fc6"
            },
            "downloads": -1,
            "filename": "tuspy_fast_api-1.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "d748dfeab9b806f708e42c4d1cee27b5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2677,
            "upload_time": "2023-01-01T17:46:46",
            "upload_time_iso_8601": "2023-01-01T17:46:46.499675Z",
            "url": "https://files.pythonhosted.org/packages/d9/58/7208ca2d966adcd4c3d50cdf116bd3684f2f54816ef65cec8e831e53edaa/tuspy_fast_api-1.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-01 17:46:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "edihasaj",
    "github_project": "tuspy-fast-api",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "fastapi",
            "specs": [
                [
                    "~=",
                    "0.88.0"
                ]
            ]
        },
        {
            "name": "starlette",
            "specs": [
                [
                    "~=",
                    "0.22.0"
                ]
            ]
        },
        {
            "name": "setuptools",
            "specs": [
                [
                    "~=",
                    "65.6.3"
                ]
            ]
        },
        {
            "name": "pydantic",
            "specs": [
                [
                    "~=",
                    "1.10.4"
                ]
            ]
        }
    ],
    "lcname": "tuspy-fast-api"
}
        
Elapsed time: 0.03161s