Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (5 sloc) 243 Bytes
from couchdb import Server
# Go to http://localhost:5984/_utils to create the database.
def create(dbname, username, password, type='user'):
db = Server()[dbname]
db.create({'type': type, 'username': username, 'password': password})