Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Libraries

    trollop 0.0.7

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Brent Tubbs | More programs
    MIT/X Consortium Lic... / FREE
    April 3rd, 2012, 12:49 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    trollop description

    A Python library for working with the Trello API

    trollop is a Python library for working with the Trello API.

    Quick Start

    A Trello connection is instantiated with your API key and a user's oauth token:

    In [1]: from trollop import TrelloConnection

    In [2]: conn = TrelloConnection(< your developer key >, < user's oauth token >)


    The connection object will automatically have a Member object attached, representing the user whose oauth token was used to connect:

    In [3]: conn.me
    Out[3]: < trollop.lib.Member object at 0x101707650 >

    In [4]: conn.me.username
    Out[4]: u'btubbs'


    In the previous example no HTTP request was made until command 4, the access to conn.me.username. Trollop objects are lazy.

    The connection object has methods for getting objects by their IDs. The objects will have attributes named exactly as they are in the Trello API docs.:

    In [5]: card = conn.get_card('4f2e454cefab2bbd4ea71b02')

    In [6]: card.name
    Out[6]: u'Build a Python Trello Library'

    In [7]: card.desc
    Out[7]: u'And call it Trollop.'

    In [8]: card.idList
    Out[8]: u'4f17cb04d5c817032301c179'


    In addition, there are convenience properties to automatically look up related objects.:

    In [9]: lst = card.list

    In [10]: lst
    Out[10]: < trollop.lib.List object at 0x101707890 >

    In [11]: lst.name
    Out[11]: u'Icebox'

    In [12]: lst.id
    Out[12]: u'4f17cb04d5c817032301c179'

    In [13]: len(lst.cards)
    Out[13]: 20

    In [14]: lst.cards[-1].name
    Out[14]: u'Build a Python Trello Library'


    Help Wanted

    Coverage for creating/updating objects is still really thin. If you'd like to pitch in to finish covering the whole API, please send a pull request with your changes.


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    Trello API | Python library | Python | Trello | API



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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