semvec/pypi-packages huggingface dataset:
Quart-JWT-Extended 0.1.0
Extended JWT integration with Quart
License: MIT
Requires Python: >=3.7
Keywords: quart,jwt,json web token

# Quart-JWT-Extended
[![Build Status](https://travis-ci.org/greenape/quart-jwt-extended.svg?branch=master)](https://travis-ci.org/greenape/quart-jwt-extended)
[![Coverage Status](https://coveralls.io/repos/github/greenape/quart-jwt-extended/badge.svg?branch=master)](https://coveralls.io/github/greenape/quart-jwt-extended?branch=master)
[![PyPI version](https://badge.fury.io/py/Quart-JWT-Extended.svg)](https://badge.fury.io/py/Quart-JWT-Extended)
[![Documentation Status](https://readthedocs.org/projects/quart-jwt-extended/badge/)](http://quart-jwt-extended.readthedocs.io/en/latest/)

Quart-JWT-Extended is an async fork of the excellent [Flask-JWT-Extended](https://github.com/vimalloc/flask-jwt-extended) for use with [Quart](https://pgjones.gitlab.io/quart/)

### Features
Quart-JWT-Extended not only adds support for using JSON Web Tokens (JWT) to Quart for protecting views,
but also many helpful (and **optional**) features  built in to make working with JSON Web Tokens
easier. These include:

* Support for adding custom claims to JSON Web Tokens
* Custom claims validation on received tokens
* Creating tokens from complex objects or complex object from received tokens
* [Refresh tokens](https://auth0.com/blog/refresh-tokens-what-are-they-and-when-to-use-them/)
* Token freshness and separate view decorators to only allow fresh tokens
* Token revoking/blacklisting
* Storing tokens in cookies and CSRF protection

### Usage
[View the documentation online](https://quart-jwt-extended.readthedocs.io/en/stable/)

### Changelog
You can view the changelog [here](https://github.com/greenape/quart-jwt-extended/releases).
This project follows [semantic versioning](https://semver.org/).

### Local Development
We require 100% code coverage in our unit tests. You can run the tests locally
with `tox` which will print out a code coverage report. Creating a pull request
will run the tests against python 3.7 and 3.8.
```
$ tox
```

We also require features to be well documented. After installing the requirements,
you can generate a local copy of documentation by going to the `docs` directory
and running:
```
$ make clean && make html
```
flake-type-annotations-plugin 0.2.0
flake8 plugin for type annotations
License: MIT
Requires Python: >=3.7, <4
Keywords: python,flake8,type annotations

## Flake type annotations plugin

[![Python Version](https://img.shields.io/pypi/pyversions/flake-type-annotations-plugin.svg)](https://pypi.org/project/flake-type-annotations-plugin/)
[![PyPI version](https://badge.fury.io/py/flake-type-annotations-plugin.svg)](https://pypi.org/project/flake-type-annotations-plugin/)
[![PyPI - License](https://img.shields.io/pypi/l/flake8-annotations?color=magenta)](https://github.com/sco1/flake8-annotations/blob/master/LICENSE)
[![Code style: black](https://img.shields.io/badge/code%20style-black-black)](https://github.com/psf/black)

The `flake8` plugin checking for correct usage of the Python type annotations.

Use with [flake8-annotations](https://pypi.org/project/flake8-annotations/) for even better results!

## Installation

Plugin requires `flake8 >3.0.0`

```bash
pip install flake-type-annotations-plugin
```

## Rules

### `TAN001`

This rule disallows usage of `Union` and `Optional` type annotations and expects user 
to use the new `|` operator syntax.

Example:

```python
# WRONG
from typing import Optional, Union

def func(arg: Optional[int]) -> Union[int, str]:  # violates TAN001
    return arg if arg is not None else "N/A"

# CORRECT
def func(arg: int | None) -> int | str:  # OK
    return arg if arg is not None else "N/A"
```

For Python versions `<3.10` a top-level module import 
`from __future__ import annotations` must be included in order to use this 
syntax.

More can be read in [PEP604](https://peps.python.org/pep-0604/).

### `TAN002`

This rule disallows usage of type annotations where built-in types can be used.

Example:

```python
# WRONG
from typing import List, Tuple

def func(arg: Tuple[int]) -> List[int]:  # violates TAN002
    return list(arg)

# CORRECT
def func(arg: tuple[int]) -> list[int]:  # OK
    return list(arg)
```

For Python versions `<3.9` a top-level module import
`from __future__ import annotations` must be included in order to use this
syntax.

More can be read in [PEP585](https://peps.python.org/pep-0585/).