Skip to main content

Client for Tastypie. Provide operation similar to the Django Model API

Project description

Tastypie Queryset Client

Client for Tastypie. Provide operation similar to the Django Model API .



>>> client = Client("")
>>> client.your.objects.get(name="your")
<your: {u"id": u"1", u"name": u"your", u"status": u"any"}>


>>> client = Client("")
>>> client.your.objects.count()


>>> client = Client("")
>>> client.your.objects.filter(name="your")
<QuerySet <class 'Response'> (3/3)>


>>> client = Client("")
>>> your = client.your(name="name")
>>> your
<your: {u"name": u"name"}>
>>>  # save Your object.
>>> your
<your: {u"id": u"2", u"name": u"name"}>


>>> client = Client("")
>>> message = client.message(subject="subject delete 1", body="body delete 1")
<message: {u"id": u"1", u"subject": u"subject delete 1", u"body": u"body delete 1"}>
>>> message.delete()  # remove Message object.
>>> try:
>>> except AttributeError:
>>>     assert True  # throw AttributeError.


$ pip install tastypie-queryset-client


MIT License

Project details

Download files

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

Files for tastypie-queryset-client, version 0.7.2
Filename, size File type Python version Upload date Hashes
Filename, size tastypie-queryset-client-0.7.2.tar.gz (416.6 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