Skip to content

Commit 9aad761

Browse files
author
Jan Korte
committed
authentication doc
1 parent 21e1b48 commit 9aad761

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

couchdb/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
class Server(object):
4444
"""Representation of a CouchDB server.
4545
46-
>>> server = Server()
46+
>>> server = Server() # connects to the local_server
47+
>>> remote_server = Server('http://example.com:5984/')
48+
>>> secure_remote_server = Server('https://username:password@example.com:5984/')
4749
4850
This class behaves like a dictionary of databases. For example, to get a
4951
list of database names on the server, you can simply iterate over the

doc/getting-started.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ running elsewhere, set it up like this:
1414

1515
>>> couch = couchdb.Server('http://example.com:5984/')
1616

17+
You can also pass authentication credentials or use SSL: https://username:password@host:port/
18+
1719
You can create a new database from Python, or use an existing database:
1820

1921
>>> db = couch.create('test') # newly created

0 commit comments

Comments
 (0)