First release of curses interface
First release of curses interface
I'm releasing a first version of my curses interface for the daemon. It displays basic information about torrents and you can do basic things like adjusting upload/download limits and pausing/removing/verifying torrents. If your daemon doesn't listen on localhost:9091, you have to provide this information as a command line argument, for example: transmission-remote-cli.py remotehost:1234
Authentication isn't implemented yet.
It's written in Python, so you need a working Python installation. I'm not quite sure about what version is needed. I'm using 2.5.2.
As mentioned before, I'm planning to implement a detailed view for single torrents, where the user can get as much information as possible. Any further feature requests, bugreports and suggestions are very welcome.
I would like to add the script as an attachment to this post, but it always says that the extension isn't allowed. I tried py, gz, txt and nothing. What extensions are allowed? I don't have any webspace, so I'm stuck here.
Authentication isn't implemented yet.
It's written in Python, so you need a working Python installation. I'm not quite sure about what version is needed. I'm using 2.5.2.
As mentioned before, I'm planning to implement a detailed view for single torrents, where the user can get as much information as possible. Any further feature requests, bugreports and suggestions are very welcome.
I would like to add the script as an attachment to this post, but it always says that the extension isn't allowed. I tried py, gz, txt and nothing. What extensions are allowed? I don't have any webspace, so I'm stuck here.
Re: First release of curses interface
hi fagga,
if that isn't too long,
just try Code tags
if that isn't too long,
just try Code tags
Re: First release of curses interface
It's 806 lines, 28KB long. Posting this as code would be pretty inconvenient.
Anyhow: Why is everyone calling me lucky charms? Is this some conspiracy thing in this forum? Not hat I'm having trouble with it, I'm just curious.
Anyhow: Why is everyone calling me lucky charms? Is this some conspiracy thing in this forum? Not hat I'm having trouble with it, I'm just curious.
Re: First release of curses interface
There are very many free hosting out there. You can use sourceforge.net or some free git/hg hosting like this:
http://repo.or.cz/
http://gitorious.org/
http://github.com/
http://www.selenic.com/mercurial/wiki/i ... ialHosting
Or you can create a new ticket and attach your Python script.
http://trac.transmissionbt.com/timeline
http://repo.or.cz/
http://gitorious.org/
http://github.com/
http://www.selenic.com/mercurial/wiki/i ... ialHosting
Or you can create a new ticket and attach your Python script.
http://trac.transmissionbt.com/timeline
Re: First release of curses interface
yea, sure..fagga wrote:Why is everyone calling me lucky charms? Is this some conspiracy thing in this forum?
it's a conspiracy thing here..
we just came to an agreement (all forum members, you see) that we are calling you as Lucky Charms
Re: First release of curses interface
Phew. I finally got the script off my PC into the internet!
Actually, I don't think that such a small script needs a version system like git, so I chose the ticket solution: http://trac.transmissionbt.com/ticket/1412
If you guys like my script, maybe it could get a single page in the wiki, just some explaining words, maybe a screenshot and a download link?
Actually, I don't think that such a small script needs a version system like git, so I chose the ticket solution: http://trac.transmissionbt.com/ticket/1412
If you guys like my script, maybe it could get a single page in the wiki, just some explaining words, maybe a screenshot and a download link?
Well, if that's the whole initiation rite, I can sure live with that. (:pea wrote:we just came to an agreement (all forum members, you see) that we are calling you as Lucky Charms
Re: First release of curses interface
Yes, you where right. To manage all this encoding and decoding stuff is always the hardest part for me when doing terminal applications.Jordan wrote:Looks like perhaps there's problem handling utf-8 encodings. any ideas?
I think I found the problem and it worked for me with a test torrent file which contains non-ascii characters. But: single non-ascii characters are still counted as two (maybe more) characters which messes up the table slightly. But it should be usable anyhow if there are not too much special chars.
My second weakness. (:Jordan wrote:Also, there probably needs to be a copyright notice at the top of the file...
Re: First release of curses interface
I just attached a new version to the ticket: http://trac.transmissionbt.com/attachme ... ote-cli.py
It uses locales, so there should be no problems with wide characters anymore.
Besides, I did some structural rewrites and it should be more responsive and less cpu hungry.
It uses locales, so there should be no problems with wide characters anymore.
Besides, I did some structural rewrites and it should be more responsive and less cpu hungry.
Re: First release of curses interface
It's now crashing at a different point in the file. This is probably a Good Thing, since it's progress
I'm looking forward to seeing this in action.
Code: Select all
Traceback (most recent call last):
File "./transmission-remote-cli.py", line 866, in <module>
ui = Interface(HOST, PORT)
File "./transmission-remote-cli.py", line 339, in __init__
curses.wrapper(self.run)
File "/usr/lib64/python2.5/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "./transmission-remote-cli.py", line 416, in run
self.draw_torrentlist()
File "./transmission-remote-cli.py", line 524, in draw_torrentlist
self.draw_torrentitem(self.torrents[i], (i == self.focus), ypos, 0)
File "./transmission-remote-cli.py", line 546, in draw_torrentitem
self.draw_torrent_status(info, focused, y)
File "./transmission-remote-cli.py", line 617, in draw_torrent_status
line = status
UnboundLocalError: local variable 'status' referenced before assignment
Re: First release of curses interface
You must have some torrent in a state that isn't documented. Strange. But this shouldn't happen again now.
I'm curious if it will ever run on any computer which is not mine...
I'm curious if it will ever run on any computer which is not mine...
Re: First release of curses interface
Hey, it's working! This looks like a great initial cut, too!
Re: First release of curses interface
I'm glad you like it.
The resizing problem is a known bug, it happens only when shrinking the window.
The resizing problem is a known bug, it happens only when shrinking the window.
Re: First release of curses interface
Just did another release which fixed the crash on shrinking bug.
And I think I'm gonna put it on one of those hosting services after all. This is getting too stupid.
And I think I'm gonna put it on one of those hosting services after all. This is getting too stupid.
Re: First release of curses interface
I've got some unused webspace lying around. You can upload your interface if you like to.
Re: First release of curses interface
I think that's a good idea. It's to early to put this in the Transmission tarball, but it's looking good, and the bugfixes are coming fast & furious, so I'd like to be able to link to it from the Transmission homepage...fagga wrote:Just did another release which fixed the crash on shrinking bug.
And I think I'm gonna put it on one of those hosting services after all.