2.6 KiB
Installation
Requirements
You will need at least one of Twisted or Asyncio as your networking framework.
..note:: Asyncio comes bundled with Python 3.4. For Python 3.3, install it from here. For Twisted, please see here.
Install from Python Package Index
Install from the Python Package Index using Pip:
pip install autobahn
You can also specify install variants
pip install autobahn[twisted,accelerate]
The latter will automatically install Twisted and native acceleration packages when running on CPython.
pip install autobahn[asyncio,accelerate]
The latter will automatically install asyncio backports when required and native acceleration packages when running on CPython.
Install from Sources
To install from sources, clone the repo
git clone git@github.com:tavendo/AutobahnPython.git
checkout a tagged release
cd AutobahnPython
git checkout v0.8.5
and install
cd autobahn
python setup.py install
You can also use Pip for the last step, which allows to specify install variants
pip install -e .[twisted]
has the following install variants:
twisted: Install Twisted as a dependencyasyncio: Install asyncio backports when requiredaccelerate: Install native acceleration packages on CPythoncompress: Install packages for non-standard WebSocket compression methodsserialization: Install packages for additional WAMP serialization formats (currently [MsgPack](http://msgpack.org/))
Performance
is portable, well tuned code. You can further accelerate performance by
Depending on Autobahn
To require as a dependency of your package, include the following in
your setup.py:
install_requires = ["autobahn>=0.7.2"]
You can also depend on an install variant which automatically installs respective packages:
install_requires = ["autobahn[twisted,accelerate]>=0.7.2"]
Check the installation
In the Python interpreter, to check the installation do:
>>> from autobahn import __version__ >>> print __version__ 0.8.5