Skip to main content

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

This version

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for drf-client, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size drf-client-1.0.0.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page