djc / couchdb-python

Python library for working with CouchDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

documentation does not tell you how to pass credentials

snowch opened this issue · comments

Maybe it's in the docs, but I couldn't see how you pass your credentials to couchdb.

I eventually found out using google, but this info should probably be in the docs?

commented

You said you found out how to do it. Can you share that information?
I think about switching to https://py-couchdb.readthedocs.org/.

The statement on that package's homepage that others are not maintained is incorrect. CouchDB-Python is maintained just fine (but not much development is otherwise happening).

IIRC you can just pass the authentication data in the URL, http://user:pass@host:port/.

commented

Thanks for the fast answer. Yes, that works :)
Without SSL it is not safe to use over internet, right?

That's right. I guess you could possibly use OAuth authentication in that case, but it's a bit more complex.

commented

Is SSL possible with couchdb-python?

I've never tried it, but I don't know why it wouldn't work. Let's put it like this: you're welkom to file bugs if it breaks.

@Tamriel couchdb-python works fine with SSL.