Dynamic rest client for DRF based django api servers
Project description
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
drf-client-1.0.0.tar.gz
(2.8 kB
view details)
File details
Details for the file drf-client-1.0.0.tar.gz
.
File metadata
- Download URL: drf-client-1.0.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 157f0d2ce78b1f6dc7605d5d56f95d83013d36f15194102ab90502df1231dd47 |
|
MD5 | f01931bd0affc6208c1bb09ec3d4363a |
|
BLAKE2b-256 | 639d28a29e1c107be897160d94e9914791f53728c2302cd9b0adaabc962d1e56 |