drf-http-response-0.0.1.0
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | drf-http-response-0.0.1.0 |
| نام | drf-http-response |
| نسخه کتابخانه | 0.0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Raisul |
| ایمیل نویسنده | raisul@kutumbita.com |
| آدرس صفحه اصلی | https://github.com/raisulru/drf-http-response.git |
| آدرس اینترنتی | https://pypi.org/project/drf-http-response/ |
| مجوز | License :: OSI Approved :: MIT License |
# DRF http response
A DRF http custom response
## Description
This a http response package for django rest framework custom response. This is only for any django projects which used drf for http response.
## Dependencies
Djago
DRF
## Uses
Install it by runing
- `pip install drf-http-response`
Import into your project
- `from drf_http_response import success, result, error`
Use it in your http response
- `return success.get_response(message='Successfully Completed', status=200)`
If you use any type of response without passing parameter into it. No problem it will always return a default message. For `result.get_response()` you can pass data or object as a message into it.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl drf-http-response-0.0.1.0:
pip install drf-http-response-0.0.1.0.whl
نصب پکیج tar.gz drf-http-response-0.0.1.0:
pip install drf-http-response-0.0.1.0.tar.gz