tastypie-queryset-client. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- MIT/X Consortium Lic...
- °Ô½ÃÀÚ À̸§:
- Tatsuo Ikeda
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- https://bitbucket.org/ikeikeikeike/
tastypie-queryset-client. ű×
tastypie-queryset-client. ¼³¸í
tastypie-queryset-client´Â django ¸ðµ¨ api.usageget >>> client = client ( "http://api.server.com/your/v1/") >>> Ŭ¶óÀ̾ðÆ®¿Í À¯»çÇÑ ÀÛ¾÷À» Á¦°øÇÏ´Â Tastypie ¿ë Ŭ¶óÀ̾ðÆ®ÀÔ´Ï´Ù. your.objects.get (name = "your") count >> > Client = Ŭ¶óÀ̾ðÆ® ( "http://api.server.com/your/v1/") >>> client.your.Objects.Count () 100Filter >>> Ŭ¶óÀ̾ðÆ® = Ŭ¶óÀ̾ðÆ® ( "http : //api.server) .com / your / v1 / ") >>> client.your.Objects.Filter (name ="your ") (3/3)> ÀúÀå >>> Ŭ¶óÀ̾ðÆ® = Ŭ¶óÀ̾ðÆ® ("http : //api.server.com/your/v1/ ") >>> = client.your (name ="name ") >>> ´ç½ÅÀÇ <´ç½ÅÀÇ : {u"À̸§ ": u"À̸§ "}>> >> Your.Save () # °´Ã¼¸¦ ÀúÀåÇϽʽÿÀ. >>> »èÁ¦ >>> Ŭ¶óÀ̾ðÆ® = Ŭ¶óÀ̾ðÆ® ( " http://api.server.com/your/v1/ ") >>> message = client.message (subject ="Á¦¸ñ »èÁ¦ 1 ", º»¹® ="º»¹® »èÁ¦ 1 ") >>> message.save ()> >> Message.ID >>> Message.delete () # ¸Þ½ÃÁö °´Ã¼ Á¦°Å. >>> ½Ãµµ : >>> message.id >>> attributeerror : >>> true # true atter atter ButeError.Setup PIP TastyPie-queryset-ClientDocumentationTastyPie-QuerySet-Client.ReadTheDocs.OrgProductÀÇ È¨ÆäÀÌÁö
tastypie-queryset-client. °ü·Ã ¼ÒÇÁÆ®¿þ¾î