Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

README cleanup of features and connect() usage

  • Loading branch information...
commit 89cb437c0c224ac06823dda9854379a7d9f2b709 1 parent 06388ea
Tyler Hobbs thobbs authored

Showing 1 changed file with 13 additions and 9 deletions. Show diff stats Hide diff stats

  1. +13 9 README.mkd
22 README.mkd
Source Rendered
... ... @@ -1,12 +1,16 @@
1 1 pycassa
2 2 =======
3 3
4   -pycassa is a python client library for Apache Cassandra with the following features:
  4 +pycassa is a python client library for [Apache Cassandra](http://cassandra.apache.org)
  5 +with the following features:
5 6
6   -1. Auto-failover for normal or thread-local connections
7   -2. Connection pooling
8   -3. A batch interface
9   -4. A method to map an existing class to a Cassandra column family
  7 +* Automatic failover and operation retries
  8 +* Connection pooling
  9 +* Multithreading support
  10 +* A batch interface
  11 +* A class for mapping classes to Cassandra column families
  12 +
  13 +The latest release is compatible with Cassandra 0.7 and 0.8.
10 14
11 15 Documentation
12 16 -------------
@@ -44,7 +48,7 @@ The simplest way to install manually is to copy the pycassa directories to
44 48 your program. If you want to install, make sure you have thrift installed,
45 49 and run setup.py as a superuser.
46 50
47   - easy_install thrift05
  51 + easy_install thrift
48 52 python setup.py install
49 53
50 54 Connecting
@@ -58,8 +62,8 @@ you can use help:
58 62
59 63 To get a connection pool, pass a Keyspace and an optional list of servers:
60 64
61   - >>> pool = pycassa.connect('Keyspace1') # Defaults to connecting to the server at 'localhost:9160'
62   - >>> pool = pycassa.connect('Keyspace1', ['192.168.2.10:9160'])
  65 + >>> pool = pycassa.ConnectionPool('Keyspace1') # Defaults to connecting to the server at 'localhost:9160'
  66 + >>> pool = pycassa.ConnectionPool('Keyspace1', server_list=['192.168.2.10'])
63 67
64 68 See the [tutorial](http://pycassa.github.com/pycassa/tutorial.html#connecting-to-cassandra) for more details.
65 69
@@ -68,7 +72,7 @@ Basic Usage
68 72
69 73 To use the standard interface, create a ColumnFamily instance.
70 74
71   - >>> pool = pycassa.connect('Keyspace1')
  75 + >>> pool = pycassa.ConnectionPool('Keyspace1')
72 76 >>> cf = pycassa.ColumnFamily(pool, 'Standard1')
73 77 >>> cf.insert('foo', {'column1': 'val1'})
74 78 1261349837816957

0 comments on commit 89cb437

Please sign in to comment.
Something went wrong with that request. Please try again.