Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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

Project Description


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.
Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
aiohttp_validate-1.0.0-py2.py3-none-any.whl (6.4 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Dec 12, 2016
aiohttp_validate-1.0.0.tar.gz (14.9 kB) Copy SHA256 Checksum SHA256 Source Dec 12, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting