[skip ci] docs update
[skip ci] update compiled docs
[skip ci] update compiled docs
raise_for_status on document merge
pyflakes
Merge pull request #28 from ksnavely/27-merge-raise-for-status

27 merge raise for status
Do not force importing async modules

If the user is not going to use async instances he doesn't need to have
installed requests_futures and python 3.x.

Show an exception to the users in case that he needs this functionality
but they didn't installed all the dependencies.
Merge pull request #29 from agonzalezro/futures

Do not force importing async modules
Support requests with HEAD method
Merge pull request #34 from kxepal/request-head-method

Support requests with HEAD method
Move session, login and logout methods from Resource to Account

It's a bit awkward to have the code:

  db = cloudant.Database(url)
  doc = db.document(docid)
  doc.login('username', 'password')

Since these methods are not related to document nor database resources.
Account as holder of server root endpoint method is more suitable place
for them.
Merge pull request #35 from kxepal/normalize-access-to-session

Move session, login and logout methods from Resource to Account
Fix imports

Use relative imports for package's modules
Fix import urlparse for Python 3.x
Remove unused imports
Support Python 3.x
Fix too weird formatting
Fix JSON decoding for Python 3.x
Merge pull request #32 from kxepal/python3

Fix declared Python 3.2+ support
Let db.changes() yield dict objects

This change allows to process changes feed events without any additional
magic work as iter_lines, parsing json, handling heartbeats - all these
routines are wrapped inside changes() method.

Also, for continuous changes feed it doesn't holds anymore the latest
change events in memory till request timeout or new change events.
Optionally emit heartbeats as None from changes feed.

Use the next call to catch them:

for item in db.changes(emit_heartbeats=True, params=params):
  if item is None:
    print("Heartbeat detected!")
  else:
    print("Something got changed!")
Merge pull request #33 from kxepal/changes-feed

Let db.changes() yield dict objects