storjtorrent
============

Wrapper for libtorrent python bindings

# StorjTorrent

StorjTorrent is a wrapper library for libtorrent's Python bindings. It allows Storj packages to create torrents, seed files to other Storj nodes, and retrieve files using their hashes.

# Building

You will need to ensure [Boost](http://www.boost.org/) is properly installed so you can properly build and install `libtorrent`:

    $ wget http://sourceforge.net/projects/boost/files/boost/1.57.0/boost_1_57_0.tar.gz
    $ tar -zxvf boost_*.tar.gz
    $ cd boost_*
    $ ./bootstrap.sh
    $ ./b2
    $ sudo ./b2 install

After Boost is successfully built, you can build and install `libtorrent`:

    $ wget http://downloads.sourceforge.net/project/libtorrent/libtorrent/libtorrent-rasterbar-1.0.3.tar.gz
    $ cd libtorrent-rasterbar-1.0.3
    $ ./configure --enable-python-binding
    $ make
    $ sudo make install

You may also need to run:

    $ cd bindings/python
    $ sudo python setup.py install

## OSX

If you are using OSX, you can use the [Homebrew](http://brew.sh/) system to install Boost (with Python support) and libtorrent:

    $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    $ brew install boost-python 
    $ brew install libtorrent-rasterbar --with-python

You may also need to have XCode's command line tools installed if you don't already have them set up:

    $ xcode-select --install


## Windows

If you are on Windows, after you install Boost and libtorrent, you can use [installation packages](http://sourceforge.net/projects/libtorrent/files/py-libtorrent/) provided by the libtorrent project to install the Python bindings.
Add multi-OS build instructions for libtorrent and python bindings.
Add multi-OS build instructions for libtorrent and python bindings.
