histrio/py-couchdb

Feature Request: Create a Server connection with seperate authentication tuple

MarcelPa opened this issue · 0 comments

Hey everyone,

in order to authenticate with a CouchDB server, you need to add the basic authentication to the url itself, where it is extracted afterwards. If I get username and password separately, I need to put in way to much work to cut the url and put it back together including the authentication details. Looking into the code, the authentication is extracted on the second step when creating a new Server connection. Would it be possible to provide the means to supply user and password separately?

Something like

couchdb = pycouchdb.Server(couch_uri, auth=("user", "pass"))