Skip to main content

Iko is an asynchronous micro-framework for converting data into different structures.

Project description

iko

https://img.shields.io/pypi/v/iko.svg https://img.shields.io/pypi/pyversions/iko.svg Code coverage Status https://travis-ci.org/MyGodIsHe/iko.svg?branch=master https://img.shields.io/pypi/dm/iko.svg

Iko is an asynchronous micro-framework for converting data into different structures.

Inspired marshmallow.

Typical usage

The main use-case of this framework is web service’s request and response data marshaling.

Example:

@swagger.schema('UserRequest', 'UserResponse')
async def handler(request):
    body = await request.json()
    data = await UserSchema.load(body)
    await mongodb.users.insert_one(data)
    data = await mongodb.users.find_one({'_id': data['id']})
    return Response(await UserSchema.dump(data))

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

iko-0.4.0.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

iko-0.4.0-py3-none-any.whl (4.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