Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    tastypie-queryset-client 0.6.3

    Download button

    No screenshots available
    Downloads: 119  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Tatsuo Ikeda | More programs
    MIT/X Consortium Lic... / FREE
    July 16th, 2012, 18:43 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    tastypie-queryset-client description

    Client for Tastypie

    tastypie-queryset-client is a client for Tastypie to provide operation similar to the Django Model API.

    Usage

    Get

    >>> client = Client("http://api.server.com/your/v1/")
    >>> client.your.objects.get(name="your")
    < your: {u"id": u"1", u"name": u"your", u"status": u"any"} >


    Count

    >>> client = Client("http://api.server.com/your/v1/")
    >>> client.your.objects.count()
    100


    Filter

    >>> client = Client("http://api.server.com/your/v1/")
    >>> client.your.objects.filter(name="your")
    < QuerySet < class 'Response' > (3/3) >


    Save

    >>> client = Client("http://api.server.com/your/v1/")
    >>> your = client.your(name="name")
    >>> your
    < your: {u"name": u"name"} >
    >>> your.save() # save Your object.
    >>> your
    < your: {u"id": u"2", u"name": u"name"} >


    Delete

    >>> client = Client("http://api.server.com/your/v1/")
    >>> message = client.message(subject="subject delete 1", body="body delete 1")
    >>> message.save()
    >>> message.id

    >>> message.delete() # remove Message object.
    >>> try:
    >>> message.id
    >>> except AttributeError:
    >>> assert True # throw AttributeError.


    Setup

     pip install tastypie-queryset-client

    Documentation

    tastypie-queryset-client.readthedocs.org


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    Tastypie client | Python library | Python | Tastypie | client

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM