Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Simple library that helps you validate your API endpoints requests/responses with json schema

Project description

aiohttp_validate Documentation Status Updates

Simple library that helps you validate your API endpoints requests/responses with jsonschema. Documentation is also available here at


Install from PyPI:

pip install aiohttp_validate


Complete example of validation for text tokenization microservice:

from aiohttp_validate import validate

        "type": "object",
        "properties": {
            "text": {"type": "string"},
        "required": ["text"],
        "additionalProperties": False
        "type": "array",
        "items": {
            "type": "array",
            "items": {
                "type": "array",
                "items": {"type": "string"}
async def tokenize_text_handler(request, *args):
    return tokenize_text(request["text"])


  • The decorator to (optionally) validate the request to your aiohttp endpoint and it’s response.
  • Easily integrates with aiohttp_swaggerify to automatically document your endpoints with swagger.
  • Validation errors are standardized and can be easily parsed by the clients of your service and also human-readable.


Install requirement and launch tests:

pip install -r requirements-dev.txt


That package is influenced by Tornado-JSON written by Hamza Faran Code to parse errors is written by Ruslan Karalkin


  • Free software: MIT license


1.0.0 (2016-12-12)

  • Better documentation.
  • Updated requirements.
  • Out of alpha!

0.1.0 (2016-10-12)

  • First release on PyPI.

Project details

Download files

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

Files for aiohttp_validate, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size aiohttp_validate-1.1.0.tar.gz (14.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page