After months of heavy development I’m glad to finally announce the official release libturpial 1.0.

libturpial is the backend of the next Turpial version, it handles multiple microblogging protocols (Twitter and Identi.ca at the moment) and has support for multiple accounts and multiple columns. It is a great tool to develop automated Python scripts that need to handle the Twitter API or even to develop a microblogging client on top of it.

Most important features of the final release include:

  • Support for Twitter API v1.1
  • Fixed memory leak
  • Migrated code from urllib2 to Requests
  • Restructured Core
  • Eased the OAuth process
  • Enhanced documentation
  • Raising exceptions for error situations
  • Developed accounts manager and columns manager
  • Improved string representation of most commonly used models
  • Added a minimal unit test script

libturpial is now available from our files repository and from PyPI. You can install it from sources or via pip using:

pip install libturpial

Do you want to test libturpial? Take a look at our Quickstart Guide or follow the instructions to generate the documentation of libturpial for a full API reference.

If you find any issue please report it on Github or in our mailing-list.

Thanks to the all the people that showed us their support and contributed to achieve this big step.

  • :D

    How do I integrate this with the current Turpial?

    • Wil Alvarez

      This library is not intended to be compatible with the current Turpial (1.6.9) because doing that would imply a lot of work. Thus, I’m working on a new version of the client that will work on top of libturpial.

      However you could try to adapt the code in Turpial 1.6.9 to make it work with libturpial (it’s not impossible, just a lot of work) ;)

  • Manuel

    cool, finally multiple accounts support :)
    Can’t wait for new Turpial then.

    • Wil Alvarez

      And we can’t wait to show you what we’ve got :D

  • gccLinux

    I am waiting for Turpial to go into Ubuntu’s app store and be available for download, I’ll keep my eyes open.

    • Wil Alvarez

      We’ll be there soon. Keep your eyes wide open ;)

  • Anonymous

    I dont know where i can get some help but i am unable to log in in turpial. It pop ups the twitter in a windows so i can get the code and allow turpial to acess twitter then i paste the code to the box in bottom of window then click ok and it try to log in and then it shows in turpial login window: Autentication error
    and above: user and passowrd (then an image with !)
    Do i need something next to my username?

    Heres what i’ve got after insert pin:
    Traceback (most recent call last):
    File “/usr/lib/python2.7/site-packages/turpial/api/protocols/twitter/http.py”, line 128, in request
    rtn = self.do_request(uri, args)
    File “/usr/lib/python2.7/site-packages/turpial/api/interfaces/http.py”, line 187, in do_request
    response = self.__send(authreq)
    File “/usr/lib/python2.7/site-packages/turpial/api/interfaces/http.py”, line 159, in __send
    handle = urllib2.urlopen(req)
    File “/usr/lib/python2.7/urllib2.py”, line 127, in urlopen
    return _opener.open(url, data, timeout)
    File “/usr/lib/python2.7/urllib2.py”, line 410, in open
    response = meth(req, response)
    File “/usr/lib/python2.7/urllib2.py”, line 523, in http_response
    ‘http’, request, response, code, msg, hdrs)
    File “/usr/lib/python2.7/urllib2.py”, line 448, in error
    return self._call_chain(*args)
    File “/usr/lib/python2.7/urllib2.py”, line 382, in _call_chain
    result = func(*args)
    File “/usr/lib/python2.7/urllib2.py”, line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
    HTTPError: HTTP Error 410: Gone

    Thanks.

    • Anonymous

      Think i found the problem.


      6
      down vote

      Just like previous answers said, Twitter shut down its 1.0 API Wednesday, June 12th 2013.
      Now Twitter clients have to use the new and controversial 1.1 API. As a
      consequence, Twitter clients which have not implemented the 1.1 API
      support yet will be broken until they implement it. Twitter clients for
      Linux (and Ubuntu) are in different situations :

      Polly and Birdie both support this 1.1 API. You can use them seamlessly.

      Choqok and Turpial did not currently support the 1.1 API. So they will not work until their developers implement the 1.1 API support.”