Permalink
Browse files

Simplify README "Basic Usage" section

  • Loading branch information...
1 parent ad60c62 commit fdf8b9e5f06bfcdee891ae6a54cbc7ef12730d7e @thobbs thobbs committed Aug 2, 2011
Showing with 5 additions and 13 deletions.
  1. +5 −13 README.mkd
View
@@ -53,25 +53,15 @@ and run setup.py as a superuser.
easy_install thrift
python setup.py install
-Connecting
-----------
-
-All functions are documented with docstrings. To read usage documentation,
-you can use help:
-
- >>> import pycassa
- >>> help(pycassa.ColumnFamily.get)
+Basic Usage
+-----------
To get a connection pool, pass a Keyspace and an optional list of servers:
+ >>> import pycassa
>>> pool = pycassa.ConnectionPool('Keyspace1') # Defaults to connecting to the server at 'localhost:9160'
>>> pool = pycassa.ConnectionPool('Keyspace1', server_list=['192.168.2.10'])
-See the [tutorial](http://pycassa.github.com/pycassa/tutorial.html#connecting-to-cassandra) for more details.
-
-Basic Usage
------------
-
To use the standard interface, create a ColumnFamily instance.
>>> pool = pycassa.ConnectionPool('Keyspace1')
@@ -116,3 +106,5 @@ You can remove entire keys or just a certain column.
Traceback (most recent call last):
...
cassandra.ttypes.NotFoundException: NotFoundException()
+
+See the [tutorial](http://pycassa.github.com/pycassa/tutorial.html#connecting-to-cassandra) for more details.

0 comments on commit fdf8b9e

Please sign in to comment.