semvec/pypi-packages huggingface dataset:
Flask-Tus-Cont 1.3.2
TUS protocol implementation
License: MIT

# Flask-Tus-Cont
Flask Extension implementing the Tus.io server protocol. This project was reuploaded to Pypi under the 'Flask-Tus-Cont' name to allow a modern working version of this repo to continue serving requirements.

This repo is a fork of the fixed repo from jzwolak on github, [repo found here](https://github.com/jzwolak/Flask-Tus).
jzwolak's repo is a pull request of the original repo by matthoskins1980 [found here](https://github.com/matthoskins1980/Flask-Tus)

## Prerequisites (redis)

Currently flask-tus-cont is reliant on a local redis server.  This is used for caching information about
uploads in progress.  It is on the roadmap to remove this dependancy.  You must install the redis python package
for this extension to work.

```
pip install redis
```

## Installation

Installation from source (this repository)

```
python setup.py install
```

Installation from PyPi repository (recommended for latest stable release)

```
pip install Flask-Tus-Cont
```

## Usage

### demo.py

```python
from flask import Flask, render_template, send_from_directory
from flask_tus_cont import tus_manager
import os

app = Flask(__name__)
tm = TusManager(app, upload_url='/file-upload', upload_folder='uploads/')
```

TusManager() registers two new url endpoint /file-upload and /file-upload/\<resource\>.  You can not define views for those
urls in your app.  Simply use any tus client and point it to  /file-upload as the endpoint
flake8-datetimez 20.10.0
A plugin for flake8 to ban the usage of unsafe naive datetime class.
License: MIT
Requires Python: >=3.6
Keywords: flake8 datetime pyflakes pylint linter qa

# flake8-datetimez

A plugin for flake8 to ban the usage of unsafe naive datetime class.


## List of warnings

- **DTZ001** : The use of `datetime.datetime()` without `tzinfo` argument is not allowed.

- **DTZ002** : The use of `datetime.datetime.today()` is not allowed. Use `datetime.datetime.now(tz=)` instead.

- **DTZ003** : The use of `datetime.datetime.utcnow()` is not allowed. Use `datetime.datetime.now(tz=)` instead.

- **DTZ004** : The use of `datetime.datetime.utcfromtimestamp()` is not allowed. Use `datetime.datetime.fromtimestamp(, tz=)` instead.

- **DTZ005** : The use of `datetime.datetime.now()` without `tz` argument is not allowed.

- **DTZ006** : The use of `datetime.datetime.fromtimestamp()` without `tz` argument is not allowed.

- **DTZ007** : The use of `datetime.datetime.strptime()` without %z must be followed by `.replace(tzinfo=)` or `.astimezone()`.

- **DTZ011** : The use of `datetime.date.today()` is not allowed. Use `datetime.datetime.now(tz=).date()` instead.

- **DTZ012** : The use of `datetime.date.fromtimestamp()` is not allowed. Use `datetime.datetime.fromtimestamp(, tz=).date()` instead.


## Install

Install with pip

```
$ pip install flake8-datetimez
```

## Requirements
- Python 3.6 or above
- flake8 3.0.0 or above

## License

MIT