wget-like bittorrent client or library?

bittorrent, linux

Solution

ctorrent

 SYNOPSIS
        ctorrent [General Options]  [Download Options]  [Make Torrent
 Options] file.torrent

        CTorrent   is  a  BitTorrent  Client  written in C that doesn’t
 require any graphical component, such as an X server.  It’s built as a
 console program and it can be even used remotely in a machine that
 provides outside ssh access.

Problem

Is there any bittorrent client or (Java|Python|Ruby|Perl) library that I can use like wget or curl? I would like to use simply as a step in a script, like you would use wget. EDIT: Sorry, I should have mentioned I'm using Ubuntu.

Original source