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.1.tar.gz
(5.1 kB
view details)
Built Distribution
File details
Details for the file aiopyrestful-1.4.1.tar.gz
.
File metadata
- Download URL: aiopyrestful-1.4.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 271bae300835ac19c6b55d90e6cb36744de100b550b4d5139ef987a1238bd5ff |
|
MD5 | dd5ca65f272b9e9c2e385ee2d70a0a6e |
|
BLAKE2b-256 | d0cc14575f64452c4a607264e75c01bbc7a694d18cf3da3851c8898e20df666b |
File details
Details for the file aiopyrestful-1.4.1-py3-none-any.whl
.
File metadata
- Download URL: aiopyrestful-1.4.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b417268a953233903cc22d17e86dd70731d23fa2df0a5ba68db138121876d55 |
|
MD5 | cc9a134fa8cce57f3aea5a9ab46effc9 |
|
BLAKE2b-256 | 5117b4755684b064a43ab14f2324d7ddff8980cf6f7e7bddbfdcbcebb9a75792 |