semvec/pypi-packages huggingface dataset:
flask_verify 0.1.2
Used to verify Flask route Response and Request contents.
Requires Python: >=3.9

# flask_verify

[![Python package](https://github.com/ambertide/flask-verify/actions/workflows/python-package.yml/badge.svg)](https://github.com/ambertide/flask-verify/actions/workflows/python-package.yml)
[![Maintainability](https://api.codeclimate.com/v1/badges/d052e70921b90955244f/maintainability)](https://codeclimate.com/github/ambertide/flask-verify/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/d052e70921b90955244f/test_coverage)](https://codeclimate.com/github/ambertide/flask-verify/test_coverage)
[![Documentation Status](https://readthedocs.org/projects/flask-verify/badge/?version=latest)](https://flask-verify.readthedocs.io/en/latest/?badge=latest)

A python package to verify the content of Requests and convert the return values of view functions in Flask applications.



## Installation

You can install `flask_verify`

```bash
pip install flask_verify
```


## Example

Consider this minimal example, where `Message` is a simple dataclass.

```python
from flask_verify.verify_json import verify_json_route
from flask import Flask, request

app = Flask(__name__)

@app.route('/example', methods=['POST'])
@verify_json_route(must_contain=('message', 'username'))
def example_route():
    message = Message(request.json['username'], request.json['message'])
    return message, 200
```

Just by writing a single decorator statement, we have:

1. Ensured that the `Request` is of type `application/json` and contains keys `message` and `username`, if this is not true, our server will respond with a 400 status code Response explaining the issue to the server, including the name of the first missing key if that exists.
2. Converted the return type to JSON, `message` object is an instance of the `Message` dataclass, thanks to our decorator, the Response will automatically be converted to a JSON containing the field names and values of the dataclass instance.

[Read the Docs](https://flask-verify.readthedocs.io/en/latest/index.html)
pltRDF 0.1.6
A Python project to plot Radial distribution function (RDF) from GSD file
Requires Python: >=3.6
Keywords: sample,setuptools,development

# pltRDF

# Radial Distribution Function (RDF)

pltRDF is a Python package to plot RDF by reading a GSD file.

If your input is a trajectory, then it will consider only last frame.

## Contributor
- [Sumitava Kundu](https://github.com/sumitavakundu007/), [IACS, Kolkata](http://www.iacs.res.in/).

## Installation
### Prerequisites
1. [python3 or higher](https://www.python.org/download/releases/3.0/)
2. [scikit-build](https://pypi.org/project/scikit-build/)
3. [freud-v2.0.0 or higher](https://freud.readthedocs.io/en/latest/index.html)
4. [tbb](https://pkgs.org/download/tbb) and [tbb-devel](https://pkgs.org/download/tbb-devel)

#### Using PyPI
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install pltRDF.
You must install tbb and tbb-devel separately, though wheels for tbb and tbb-devel exist on [PyPi](https://pypi.org/) for specific operating systems.
For example, on ubuntu, you may use the following command.
```bash
sudo apt install libtbb-dev
```
Now you are ready to use pip
```bash
pip install pltRDF
```

#### Using source code
```bash
git clone https://github.com/sumitavakundu007/pltRDF.git
tar -xvf pltRDF-X.X.X
cd pltRDF-X.X.X
python3 setup.py install --user
```

## Usage

```python
import pltRDF
pltRDF.rdf("input_file.gsd", "output_file.pdf") # a PDF file for RDF
```
#### It will ask for few inputs to calculate RDF like number of bins (bins), maximum cutoff distance (r_max)

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License
[MIT](https://choosealicense.com/licenses/mit/