[Tutor] Creating a torrent file & associated tracker through a django web app

Timo timomlists at gmail.com
Wed Nov 21 11:23:24 CET 2012


Op 21-11-12 08:54, ashish makani schreef:
>
> Hi Tutor folks
>
> I am trying to achieve the following :
>
> The user should log into a web app, select a file & the web app should 
> generate a .torrent file & a private 
> tracker(http://IP_ADDRESS:PORT_NUMBER/announce) for that .torrent file.
>
> Basically, i want to programmatically create a .torrent file, on the 
> server side.
>
> I found two libraries mktorrent[1] & py3createtorrent [2], but i need 
> help with how to create a torrent from a django web app.
>
> Any suggestions for django modules or libraries which can do this ?
>
You don't need Django specific modules, just use the ones you linked and 
install them on your server. It doesn't matter if you call it from a 
script on your desktop or a Django webapp.
Looking at the example on Wikipedia [1], it's not hard to create it 
manually. It even looks like a JSON file, you'll just need a way to 
bencode the data.

Timo

[1] http://en.wikipedia.org/wiki/Torrent_file#Single_file

> Any suggestions/pointers/ideas/links will be greatly appreciated
>
> Thanks a ton,
>
> cheers,
>
> ashish
>
>  1. http://mktorrent.sourceforge.net/
>  2. http://www.robertnitsch.de/projects/py3createtorrent
>
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor



More information about the Tutor mailing list