drf-client-1.0.0
توضیحات
Dynamic rest client for DRF based django api servers
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | drf-client-1.0.0 |
| نام | drf-client |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Deepak Sheoran |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/sheoran/django-drf-client.git |
| آدرس اینترنتی | https://pypi.org/project/drf-client/ |
| مجوز | - |
# django-drf-client
Dynamic client based on coreapi and drf inspired by dotmap and java script
Example
def get_client(url,username,password):
from drf_client.client import DrfClient
return DrfClient(url, username, password)
drfc = get_client('http://server-dns-name','username','password')
doc(drfc) # it will list possible options based on server
# Example
drfc.api.<app-name>.<model>.create(**params)
drfc.api.<app-name>.<model>.list(**params).all()
drfc.api.<app-name>.<model>.list(**params).first()
نحوه نصب
نصب پکیج whl drf-client-1.0.0:
pip install drf-client-1.0.0.whl
نصب پکیج tar.gz drf-client-1.0.0:
pip install drf-client-1.0.0.tar.gz