Pastebinit 0.11 is out

It’s been a long time since pastebinit 0.10 was released.
Some people have been asking me when I planned to finally release 0.11, fixing most of the reported bugs, getting it properly translated and add more pastebins.

Well, it’s now done, these last weeks I’ve been integrating all the proposed patches on Launchpad, had some help updating the manpage, updated the translations and finally tagged 0.11.

For those of you who don’t know what pastebinit is, it’s a small python script that simply sends whatever you give it to an online pastebin and gives you the URL in return. It’s useful when doing IRC support (when you don’t want one to paste a 200 lines log) or when working on a command line box with no way to SSH in it.

So a quick changelog. There actually is nothing new in pastebinit itself, only a minor change that some of you may find annoying is that you now always have to use the “-i” parameter. This one can either be “-” for stdin or be a filename. This had to be done to fix some issues with reading from stdin.
All bugs reported on Launchpad have been closed (most of them being about adding new pastebins) the result being:
– 13 supported pastebins
– 13 complete translations
– 9 partial translations

I updated the Launchpad project page and added the new release to the download page. You can also download it directly from the usual place.

For the next release, I plan to improve the way pastebins are handled, at least by moving the different pastebin definition to an xml file for each pastebin (containing the list of URLs and html fields) or if I find the time, having something more clever handling the different pastebin engines and guessing what fields to fill with what value depending on the index page of the URL the user entered.

Until then, feedback is as always welcome and bugs can be filed on Launchpad.

About Stéphane Graber

Project leader of Linux Containers, Linux hacker, Ubuntu core developer, conference organizer and speaker.
This entry was posted in pastebinit, Planet Ubuntu. Bookmark the permalink.

6 Responses to Pastebinit 0.11 is out

  1. ethana2 says:

    “There actually is nothing new in pastebinit itself, only a minor change that some of you may find annoying is that you now always have to use the “-i” parameter.”

    That’s only for files though, right? That is, > ?
    Like, one can still pipe things to it, correct?

  2. BUGabundo says:

    Thanks for the great work with this tool!

    do u ever thought of making the ubuntu package default to ?

  3. Spiro says:

    — pastebinit 2009-02-14 15:01:48.000000000 +1300
    +++ pastebinit-0.11a 2009-02-14 15:02:26.000000000 +1300
    @@ -24,7 +24,7 @@

    defaultPB = “” #Default pastebin
    – version = “0.11” #Version number to show in the usage
    + version = “0.11a” #Version number to show in the usage
    configfile = os.environ.get(‘HOME’) + “/.pastebinit.xml”

    # Custom urlopener to handle 401’s
    @@ -230,7 +230,7 @@
    #Parse configuration file
    if gotconfigxml == 1:
    – configxml = xml.dom.minidom.parseString(configfile)
    + configxml = xml.dom.minidom.parseString(configtext)
    website = getFirstNodeText(configxml, “pastebin”)
    user = getFirstNodeText(configxml, “author”)
    format = getFirstNodeText(configxml, “format”)

  4. dayo says:

    I was wondering if there is anyway to set the expiry. From what I saw, by looking through your source code, all pastes have no expiry, i.e. they’re set to forever. Is there any option for this (didn’t find any in the man pages), or do I need to edit the source code?
    Great tool, btw. I love it!

  5. Armence says:

    Hey Stephane,

    I recently did some significant amount of work on pastebinit adding most of the features you announce on this blog post. I sent you an email with it. I created the ability to have all pastebins in configuration files, extension-based file type recognition, ability to post multiple files simultaneously. I dunno if my email has maybe been filtered out to spam.


    1. stgraber says:

      I received your e-mail.
      I’m currently at a conference for the week, I’ll try to look at it afterwards.
      I also have a LP branch to review doing massive changes that you probably also did, the tricky part will be to merge both.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.