aiopyrestful-1.4.1
توضیحات
Restful framework with Tornado
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aiopyrestful-1.4.1 |
| نام | aiopyrestful |
| نسخه کتابخانه | 1.4.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | DarHarry |
| ایمیل نویسنده | harryx520@qq.com |
| آدرس صفحه اصلی | https://github.com/HarryHEi/aiopyrestful |
| آدرس اینترنتی | https://pypi.org/project/aiopyrestful/ |
| مجوز | - |
GitHub: [aiopyrestful](https://github.com/HarryHEi/aiopyrestful)
This is a Specialized version of [pyrestful](https://github.com/rancavil/tornado-rest)
---------
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
```python
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
}
```
نیازمندی
| مقدار | نام |
|---|---|
| - | tornado |
| - | pyconvert |
نحوه نصب
نصب پکیج whl aiopyrestful-1.4.1:
pip install aiopyrestful-1.4.1.whl
نصب پکیج tar.gz aiopyrestful-1.4.1:
pip install aiopyrestful-1.4.1.tar.gz