Skip to content

Commit 93cfa4a

Browse files
committed
Rearrange optinal steps in installation
1 parent 723cd35 commit 93cfa4a

1 file changed

Lines changed: 21 additions & 21 deletions

File tree

docs/installation.rst

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,25 @@ To check if the installation was successful, you can run::
3838

3939
It should print something like "2.0.0".
4040

41+
(*Optional*) Compression Support
42+
--------------------------------
43+
Compression can optionally be used for communication between the driver and
44+
Cassandra. There are currently two supported compression algorithms:
45+
snappy (in Cassandra 1.2+) and LZ4 (only in Cassandra 2.0+). If either is
46+
available for the driver and Cassandra also supports it, it will
47+
be used automatically.
48+
49+
For lz4 support::
50+
51+
pip install lz4
52+
53+
For snappy support::
54+
55+
pip install python-snappy
56+
57+
(If using a Debian Linux derivative such as Ubuntu, it may be easier to
58+
just run ``apt-get install python-snappy``.)
59+
4160
(*Optional*) Metrics Support
4261
----------------------------
4362
The driver has built-in support for capturing :attr:`.Cluster.metrics` about
@@ -116,26 +135,7 @@ the libev event loop by doing the following:
116135
>>> cluster.connection_class = LibevConnection
117136
>>> session = cluster.connect()
118137
119-
Compression Support
120-
^^^^^^^^^^^^^^^^^^^
121-
Compression can optionally be used for communication between the driver and
122-
Cassandra. There are currently two supported compression algorithms:
123-
snappy (in Cassandra 1.2+) and LZ4 (only in Cassandra 2.0+). If either is
124-
available for the driver and Cassandra also supports it, it will
125-
be used automatically.
126-
127-
For lz4 support::
128-
129-
$ pip install lz4
130-
131-
For snappy support::
132-
133-
$ pip install python-snappy
134-
135-
(If using a Debian Linux derivative such as Ubuntu, it may be easier to
136-
just run ``apt-get install python-snappy``.)
137-
138-
Setting SSL
139-
-----------
138+
(*Optional*) Configuring SSL
139+
-----------------------------
140140
Andrew Mussey has published a thorough guide on
141141
`Using SSL with the DataStax Python driver <http://blog.amussey.com/post/64036730812/cassandra-2-0-client-server-ssl-with-datastax-python>`_.

0 commit comments

Comments
 (0)