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 .

This is a fork of original project modified to run under python >=3.3



>>> 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.

Source Distribution

tastypie-queryset-client-p3k-0.7.2.tar.gz (23.6 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page