May 19, 2008 at 9:02 am · tags: Pinder Python
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!
April 8, 2007 at 3:44 pm · tags: Pinder Python
I just released another version of Pinder, my Campfire API.
The major news is the ability to read the online transcripts like this:
>>> 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′}]
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.
March 7, 2007 at 5:09 pm · tags: Pinder Python
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:
>>> room = campfire.find_room_by_name(‘Jonz Room’)
>>> print room.users()
set([u‘Alice’])
or
>>> print campfire.users()
set([u‘Alice’, u‘Bob’])
which gets the list of the users talking in each room of the subdomain.
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.