Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Commit

Permalink
Simplify README "Basic Usage" section
Browse files Browse the repository at this point in the history
  • Loading branch information
thobbs committed Aug 2, 2011
1 parent ad60c62 commit fdf8b9e
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions README.mkd
Expand Up @@ -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')
Expand Down Expand Up @@ -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.