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

Uploaded Source

Built Distribution

iko-0.4.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file iko-0.4.0.tar.gz.

File metadata

  • Download URL: iko-0.4.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for iko-0.4.0.tar.gz
Algorithm Hash digest
SHA256 d17fcd78dc62c80a1e95973ccf5f9b72e280be9dba50d4d60077be5558d00b7d
MD5 258ee5e3ce90a9818096d707700292b6
BLAKE2b-256 fc844e07d187cfc294e01a36add253d5239c56bd546a80c1b82841ac39dc8a28

See more details on using hashes here.

File details

Details for the file iko-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: iko-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for iko-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fad547553522a3f1657933ff3d55d38c865b9400d7ec73fd3cc1faa9d50aa7c3
MD5 0dbe5ff4b9b0d61119e8c5d9158f011e
BLAKE2b-256 a09b518629b03d5dd9cf10509a7be808e529760a749c4e620972cdcc30a0b552

See more details on using hashes here.

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