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.3.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiopyrestful-1.3.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for aiopyrestful-1.3.0.tar.gz
Algorithm Hash digest
SHA256 3aaebc73e29de269d8ebe881822602db993c1900607be7da23acc52d113c4efd
MD5 08c8368b8d0ef5cdc0991734792c5dee
BLAKE2b-256 a73e2bdd1cb7519a8064956267aa91569a40580088202feb0f974ea28990765d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: aiopyrestful-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for aiopyrestful-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5406c03d2f15f4fefda27451210b0765146795bcb99d44aaed7fe66d1890fd58
MD5 eeb0b41375b091f1786143868b346bbd
BLAKE2b-256 43613680bb404d4d1595de828863ade678911b1f848d52e1c0b9c8857a895596

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