Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ iko Public

Iko (移行) is an asynchronous micro-framework for converting data into different structures.

License

Notifications You must be signed in to change notification settings

MyGodIsHe/iko

Repository files navigation

iko

Code coverage Status https://travis-ci.org/MyGodIsHe/iko.svg?branch=master

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))

About

Iko (移行) is an asynchronous micro-framework for converting data into different structures.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

Languages

AltStyle によって変換されたページ (->オリジナル) /