semvec/pypi-packages huggingface dataset:
PyCogJWT 1.0.0
A simple Python library for validating Amazon Cognito signed JSON Web Tokens (JWTs)
License: MIT
Requires Python: >=3.9

PyCogJWT is an easy-to-use Python library for validating Amazon Cognito signed JWTs. It leverages the [PyJWT](https://pypi.org/project/python-jwt/) and [cryptography](https://pypi.org/project/cryptography/) libraries to handle standard claims validation and RSA256 signature verification.

## Installation

`pip install pycogjwt`

## Basic Usage

```python
from pycogjwt import CognitoJwtValidator

validator = CognitoJwtValidator(
    user_pool_id="<user_pool_id>",
    token_use="<token_use>",
    client_id="<client_id>"
)

validator.validate(token_str="<token>")
```
## Custom Validation

You can pass an optional custom function to perform additional checks on JWT claims. The function will be called after signature verification and will include the header, payload, and the JSON Web Key (JWK) that was used to verify the signature.

```python
from pycogjwt import CognitoJwtValidator

def custom_check(header, payload, jwk) -> None:
    if payload["scope"] not in ["<allowed_scopes>"]:
        raise Exception("Invalid JWT")

validator = CognitoJwtValidator(
    user_pool_id="<user_pool_id>",
    token_use="<token_use>",
    client_id="<client_id>",
    custom_check=custom_check
)

validator.validate(token_str="<token>")
```
virtualenv-asdf 0.1.0
A virtualenv Python discovery plugin using asdf
License: MIT
Requires Python: >=3.7,<4.0
Keywords: virtualenv,asdf

# virtualenv-asdf

A [virtualenv][virtualenv] Python discovery plugin using [asdf][asdf]

## Installation

```shell
pip install virtualenv-asdf
```

## Usage

The Python discovery mechanism can be specified by:

* the CLI option `--discovery`:
  ```shell
  virtualenv --discovery asdf -p 3.10 testenv
  ```

* the environment variable `VIRTUALENV_DISCOVERY`:
  ```shell
  export VIRTUALENV_DISCOVERY=asdf
  virtualenv -p 3.10 testenv
  ```

* the [config][virtualenv-docs-config-file] option `discovery`:
  ```ini
  [virtualenv]
  discovery = asdf
  ```

  ```shell
  virtualenv asdf -p 3.10 testenv
  ```

The Python version can be expressed using either 2 or 3 version segments:

* `-p 3.9`
* `-p 3.9.3`

In the former case, the latest version found will be used.

## Limitations

Only CPython is supported at the moment.


NOTE: this package derived from [virtualenv-pyenv][virtualenv-pyenv] by un.def

[virtualenv]: https://virtualenv.pypa.io/
[asdf]: https://github.com/asdf-vm/asdf
[virtualenv-docs-config-file]: https://virtualenv.pypa.io/en/latest/cli_interface.html#configuration-file
[virtualenv-pyenv]: https://github.com:/un-def/virtualenv-pyenv
tox-asdf-redux 0.1.0
A tox plugin using asdf to find Python executables
License: MIT
Requires Python: >=3.7,<4.0
Keywords: tox,asdf

# tox-asdf-redux

A [tox][tox] plugin using [asdf][asdf] to find Python executables

To install a plugin, you install it in the same environment where the tox host is installed.

```bash
    $ pip install tox-asdf-redux
```

NOTE: Adapted from [tox-pyenv-redux][tox-pyenv-redux].

[tox]: https://tox.wiki/
[asdf]: https://github.com/asdf-vm/asdf
[tox-pyenv-redux]: https://github.com/un-def/tox-pyenv-redux
asdf-inspect 0.1.0
An auxiliary library for the virtualenv-asdf and tox-asdf-redux plugins
License: MIT
Requires Python: >=3.7,<4.0
Keywords: asdf

# asdf-inspect

An auxiliary library for the [virtualenv-asdf][virtualenv-asdf] and [tox-asdf-redux][tox-asdf-redux] plugins.

## Limitations

Only CPython is supported at the moment.


NOTE: this is modified from [pyenv-inspect][pyenv-inspect] by un-def.

[pyenv-inspect]: https://github.com/un-def/pyenv-inspect
[virtualenv-asdf]: https://github.com/lanshark/virtualenv-asdf
[tox-asdf-redux]: https://github.com/lanshark/tox-asdf-redux