Skip to main content

Restful framework with Tornado

Project description

GitHub: aiopyrestful

This is a Specialized version of pyrestful

PyRestful

pyRestful is an API to develop restful services with Tornado Web Server.

We made changes from the last version to improve it and make it more easy.

The last version works with Python 2 and 3.

aiopyrestful

Support asyncio.

Install

pip install aiopyrestful

Example

import asyncio

from aiopyrestful.rest import get, mediatypes


@asyncio.coroutine
async def async_fun():
    await asyncio.sleep(10)
    return 'text'


@get(_path='/configure', _produces=mediatypes.APPLICATION_JSON)
@asyncio.coroutine
async def post_configure(self):
    text = await async_fun()
    return {
        'text': text
    }

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

aiopyrestful-1.4.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

aiopyrestful-1.4.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file aiopyrestful-1.4.0.tar.gz.

File metadata

  • Download URL: aiopyrestful-1.4.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for aiopyrestful-1.4.0.tar.gz
Algorithm Hash digest
SHA256 04d87a6b69c6fc0b304c15a51e47ce446a44f29e7eaae908f3e3365ce8978986
MD5 691fb972be26150fd6f3edfa30862746
BLAKE2b-256 e08ffc60ff80b1c29d90cbcc32326014e460b6b4644abe903ddbe28076a38a47

See more details on using hashes here.

Provenance

File details

Details for the file aiopyrestful-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: aiopyrestful-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for aiopyrestful-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77caa08bde1c0b005426c7861c113395dcc18d30de4c5bdb5681b81a99463772
MD5 ae108bd8c23d13c00f3e0fdeed2f76cd
BLAKE2b-256 03381a16334ecc96df83f9ed54b9aaa6eda50efd1615c7b247e8d5f1da8d0d1b

See more details on using hashes here.

Provenance

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