/transfer-py

Transfer

Primary LanguagePython

Transfer.

Handles http, ftp, sftp, rsync, torrent and binsearch.


Start the daemon:
./transfer/run.py


Examples:

    from transfer import Transfer

    # Download a torrent
    src = 'magnet:?xt=urn:btih:bff328f4ae3f4c3d93d2510113daedc2b57c5870&dn=Homeland+S02E06+720p+HDTV+x264-IMMERSE+%5Beztv%5D&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.istole.it%3A6969&tr=udp%3A%2F%2Ftracker.ccc.de%3A80'
    dst = '/home/jererc/Downloads'
    Transfer.add(src, dst)

    # Upload a directory to a ftp server
    src = '/home/jererc/Downloads/my_dir'
    dst = 'ftp://user:password@host/path/to/dst'
    Transfer.add(src, dst)

    # Sync hosts directories
    src = 'rsync://username1:password1@host1/path/to/src/'
    dst = 'rsync://username2:password2@host2/path/to/dst/'
    Transfer.add(src, dst)