inicio mail me! sindicaci;ón

Pinder 0.6.0

I just released another version of Pinder, my Campfire API.

The major news is the ability to read the online transcripts like this:

[code lang="python"]

days = room.transcripts() print room.transcript(days[0]) # last transcript [{'person': u'Bob B.', 'message': u'Are you spying on me?', 'user_id': u'1234567', 'id': u'19343281'}] [/code]

See Campfire.transcripts(), Room.transcripts() and Room.transcript() for the details.

Here what’s new:

  • Campfire objects now have rooms() and rooms_names() methods to get the list of the associated room objects and the names of all the rooms

  • Campfire objects also have find_or_create_room_by_name(), an helper method which combine find_room_by_name() and create_room()

  • The whole library has been updated to httlibp2 0.3.0

  • A proper user agent is sent during the requests

  • Room objects now have guest_access_enabled() to know if the guests can enter that room

  • The support for transcripts has been added throughout the library. See the changelog for details.

Related posts

  • Pinder 0.6.5
  • Pinder is out
  • SGML Python parsers benchmark
  • Gravatar

    Drew Perttula said,

    April 10, 2007 @ 7:02 am

    pinder trac doesn’t take registrations, so I’ll leave the bug report here:

    % sudo easy_install -Z pinder Processing pinder-0.6.0-py2.4.egg % pydoc pinder problem in pinder - ImportError: cannot import name httplib2 % sudo easy_install -Z httplib2 Processing httplib2-0.3.0-py2.4.egg % pydoc pinder problem in pinder - ImportError: cannot import name httplib2

    It was trivial to work around this, but it seems like it would be better if the pinder egg depended on the httplib2 one, and then you could use a normal toplevel import of httplib2.

    Gravatar

    Lawrence said,

    April 10, 2007 @ 10:52 am

    That’s exactly what I don’t want. httplib2 is bundled with pinder for that kind of reasons. Anyway the problems seems to be Python 2.4 only. I don’t want to depend on setuptools for installation. How did you fix the pydoc problem? Importing before the installation wide httplib2 and then the local one?

    ps. you don’t need a registration: http://dev.oluyede.org/trac/default/newticket

    RSS feed for comments on this post · TrackBack URI

    Leave a Comment