Skip to main content

Portafilter provides powerful and simple data validation functionality.

Project description


Powerful and simple data validation functionality.

Portafilter provides several different approaches to validate your application's incoming data. It's zero dependencies and easy to use.


See documentation for more details.


It's on PyPI and all you need to do is:

pip install portafilter

A Simple Example

from portafilter import Validator

validator = Validator(
        'name': 'Flat White',
        'description': 'A Flat White is a coffee drink consisting of espresso with microfoam ',
        'ingredients': [
                'name': 'Espresso',
                'name': 'Steamed Milk',
        'name': 'required',
        'description': 'required|max:255',
        'ingredients': 'required|list',
        'ingredients.*.name': 'required|string',

if validator.fails():
    # The data is not valid

# The data is valid

To see all the features, visit

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

portafilter-1.0.1.tar.gz (20.4 kB view hashes)

Uploaded Source

Built Distribution

portafilter-1.0.1-py3-none-any.whl (32.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page