inicio mail me! sindicaci;ón

Pinder 0.6.5

In this new release of my Campfire API, Pinder 0.6.5, I fixed some bugs and added the methods ping() and topic() (which matches change_topic()) to the Room objects.

There is by the way an incompatible change: I do not distribute anymore BeautifulSoup and httplib2 with the library.

Go take it!

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:

  1. >>> days = room.transcripts()
  2.   >>> print room.transcript(days[0]) # last transcript
  3.   [{‘person’: u‘Bob B.’, ‘message’: u‘Are you spying on me?’,
  4.     ‘user_id’: u‘1234567′, ‘id’: u‘19343281′}]

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.

Pinder is out

Pinder is a straightforward API to interface with Campfire , the web chat application from 37Signals.

It’s basically a port of Tinder but maybe in the future will go on separate ways.

Pinder allows you to create rooms, delete them, speak from a remote client and more. For example:

  1. >>> room = campfire.find_room_by_name(‘Jonz Room’)
  2. >>> print room.users()
  3. set([u‘Alice’])

or

  1. >>> print campfire.users()
  2. set([u‘Alice’, u‘Bob’])

which gets the list of the users talking in each room of the subdomain.

  1. >>> room.speak(“Foobar”)

will send the message to the chat room so you can speak too.

There’s more like creating and deleting rooms, toggling guest access, locking the room etc.

See the usage documentation and the API documentation for details.

You can install the latest release with:

$ easy_install pinder

or

download it from here: http://dev.oluyede.org/download/pinder/

This is the first public release.