Module Expr Str Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias alias Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad keyword NameLoad attr Str Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Str NameLoad kwarg body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Str body Expr Str Assign AttributeStore NameLoad attr NameLoad If Call AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr BinOpAdd NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Yield Call AttributeLoad NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr Raise Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Yield Call AttributeLoad NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr Raise Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Yield Call AttributeLoad NameLoad attr Str Raise Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Yield Call AttributeLoad NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr Raise Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad Dict Str Str Str NameLoad BoolOpOr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Yield Call AttributeLoad NameLoad attr Str NameLoad keyword Num Raise Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore Yield Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Raise Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad Raise Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str Num decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Dict Str NameLoad Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad Raise Call AttributeLoad NameLoad attr ListComp SubscriptLoad NameLoad Index Str comprehension NameStore SubscriptLoad NameLoad Index Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Dict Str Str NameLoad NameLoad Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpOr CompareNotIn Str NameLoad CompareNotIn Str NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If Call NameLoad GeneratorExp BoolOpOr CompareNotIn Str NameLoad CompareNotIn Str NameLoad comprehension NameStore NameLoad body Raise Call NameLoad Str Assign NameStore ListComp Dict Str Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Dict Str Str NameLoad NameLoad Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareNotIn Str NameLoad body Raise Call NameLoad Str If UnaryOpNot NameLoad body If CompareNotIn Str NameLoad body Raise Call NameLoad Str orelse If CompareNotIn NameLoad SubscriptLoad NameLoad Index Str body Raise Call NameLoad Str orelse Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Call NameLoad NameLoad Assign NameStore Dict Str NameLoad Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call NameLoad GeneratorExp CompareNotIn NameLoad NameLoad comprehension NameStore ListLoad Str Str Str body Raise Call NameLoad Str Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str IfExp CompareIn Str NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Str Assign NameStore Dict Str SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If BoolOpOr CompareNotIn Str NameLoad CompareNotIn Str NameLoad body Raise Call NameLoad Str orelse Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Call NameLoad NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str Dict Assign NameStore ListLoad If NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareEq NameLoad Str body Continue If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Dict Str NameLoad orelse Assign NameStore Call NameLoad IfExp CompareIn NameLoad TupleLoad Str Str NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr ListLoad NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr NameLoad If NameLoad body Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad orelse Assign NameStore Yield Call AttributeLoad NameLoad attr NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Dict Str Str Num Num attr NameLoad Num decorator_list If Call NameLoad NameLoad NameLoad body For NameStore NameLoad body If CompareIn Str NameLoad body Raise Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad orelse If CompareIn Str NameLoad body Raise Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad orelse If CompareIn Str NameLoad body For NameStore SubscriptLoad NameLoad Index Str body If CompareIn Str NameLoad body Raise Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr NameLoad If CompareNotIn Str SubscriptLoad NameLoad Index Str body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Str Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad keyword Str NameLoad TryExcept body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Raise Call AttributeLoad NameLoad attr IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad keyword Str keyword NameLoad NameLoad TryExcept body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Raise Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad body Expr Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr NameLoad If BoolOpAnd NameLoad CompareNotIn Str SubscriptLoad NameLoad Index Str body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Str If CompareNotIn Str SubscriptLoad NameLoad Index Str body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Str Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad keyword Str keyword NameLoad NameLoad TryExcept body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Raise Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad keyword Str NameLoad TryExcept body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Raise Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad keyword Str NameLoad TryExcept body Assign NameStore Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Raise Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults Str Str kwarg body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpOr CompareEq NameLoad Str Call AttributeLoad NameLoad attr Str UnaryOpNot Call NameLoad NameLoad Str body Return NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad orelse Assign NameStore NameLoad Return NameLoad decorator_list
N/A N/A "Blocking and non-blocking (asynchronous) clients for CouchDB using
Tornado's httpclient.

This module wraps the CouchDB HTTP REST API and defines a common interface
for making blocking and non-blocking operations on a CouchDB.
 N/A copy N/A functools N/A json N/A tornado.ioloop tornado httpclient gen tornado.escape json_decode url_escape N/A __all__ N/A BlockingCouch AsyncCouch CouchException NotModified BadRequest NotFound MethodNotAllowed Conflict PreconditionFailed InternalServerError N/A __version__ 0.3.0 json_encode N/A N/A value N/A N/A N/A JSON-encodes the given Python object. N/A N/A N/A N/A N/A json dumps value allow_nan False replace </ <\/ N/A AsyncCouch N/A object N/A N/A Basic wrapper class for asynchronous operations on a CouchDB

    Example usage::

        import couch
        from tornado import ioloop, gen

        @gen.coroutine
        def run_test():
            db = couch.AsyncCouch('mytestdb')
            yield db.create_db()
            r = yield db.save_doc({'msg': 'My first document'})
            doc = yield db.get_doc(r['id'])
            yield db.delete_doc(doc)
            yield db.delete_db()

        ioloop.IOLoop.run_sync(run_test)

    For any methods of this class: If the database call results in an error,
    an exception is raised at the callpoint using an appropriate sub-class of
    CouchException. This, both when calling with a callback function or when
    yielding to a Future (using gen.coroutine).
     __init__ N/A N/A self db_name couch_url io_loop N/A http://127.0.0.1:5984/ None request_args N/A N/A Creates an `AsyncCouch`.

        All parameters are optional. Though `db_name` is required for most
        methods to work.

        Database name `db_name` may be set on init and changed later by
        `use()`. The url to the CouchDB including port number, with or
        without authentication credentials.

        The `io_loop` is passed to the AsyncHTTPClient, used for connecting.

        Keyword arguments in `request_args` are applied when making requests
        to the database. By default the request argument `use_gzip` is True.
        Accessing a local CouchDB it may be relevant to set `use_gzip` to
        False.

        The request arguments may include `auth_username` and `auth_password`
        for basic authentication. See `httpclient.HTTPRequest` for other
        possible arguments.
         N/A N/A self request_args request_args N/A N/A self _closed False N/A N/A self io_loop io_loop N/A N/A self _client N/A N/A httpclient AsyncHTTPClient N/A self io_loop N/A N/A N/A self use db_name couch_url N/A use N/A N/A self db_name couch_url N/A http://127.0.0.1:5984/ N/A N/A Set database name `db_name` and `couch_url`.

        The `couch_url` should include port number and authentication
        credentials as necessary.
         N/A N/A self db_name db_name N/A N/A N/A couch_url endswith / N/A N/A N/A self couch_url couch_url N/A N/A N/A self couch_url N/A couch_url / N/A close N/A N/A self N/A N/A N/A Closes the CouchDB client, freeing any resources used. N/A N/A N/A self _closed N/A N/A N/A N/A N/A self _client close N/A N/A self _closed True N/A create_db N/A N/A self db_name N/A None N/A N/A Creates a new database. N/A r N/A N/A N/A self _http_put N/A db_name N/A self db_name N/A N/A N/A gen Return r N/A N/A gen coroutine delete_db N/A N/A self db_name N/A None N/A N/A Deletes the database. N/A r N/A N/A N/A self _http_delete N/A db_name N/A self db_name N/A N/A N/A gen Return r N/A N/A gen coroutine list_dbs N/A N/A self N/A N/A N/A List names of databases. N/A r N/A N/A N/A self _http_get _all_dbs N/A N/A N/A gen Return r N/A N/A gen coroutine info_db N/A N/A self db_name N/A None N/A N/A Get info about the database. N/A r N/A N/A N/A self _http_get N/A db_name N/A self db_name N/A N/A N/A gen Return r N/A N/A gen coroutine pull_db N/A N/A self source db_name create_target N/A None False N/A N/A Replicate changes from a source database to current (target)
        database.
         N/A body N/A json_encode N/A source target create_target source N/A db_name N/A self db_name create_target N/A r N/A N/A N/A self _http_post _replicate body request_timeout 120.0 N/A N/A N/A gen Return r N/A N/A gen coroutine uuids N/A N/A self count N/A 1 N/A N/A Get one or more uuids. N/A r N/A N/A N/A self _http_get N/A N/A _uuids?count={0} format count N/A N/A N/A gen Return N/A r N/A uuids N/A N/A gen coroutine get_doc N/A N/A self doc_id N/A N/A N/A Get document with the given `doc_id`. N/A url N/A N/A {0}/{1} format N/A self db_name N/A url_escape doc_id N/A r N/A N/A N/A self _http_get url N/A N/A N/A gen Return r N/A N/A gen coroutine has_doc N/A N/A self doc_id N/A N/A N/A Check if document with the given `doc_id` exists.
        Returns True if document exists, returns False otherwise.
         N/A url N/A N/A {0}/{1} format N/A self db_name N/A url_escape doc_id N/A r N/A N/A N/A self _http_head url N/A N/A N/A gen Return N/A N/A r N/A code 200 N/A N/A gen coroutine get_docs N/A N/A self doc_ids N/A N/A N/A Get multiple documents with the given list of `doc_ids`.

        Response is a list with the requested documents, in same order as the
        provided document id's.

        If one or more documents are not found in the database, a NotFound
        exception is raised.
         N/A url N/A N/A {0}/_all_docs?include_docs=true format N/A self db_name N/A body N/A json_encode N/A keys doc_ids N/A r N/A N/A N/A self _http_post url body N/A N/A N/A gen Return N/A N/A row N/A doc N/A row N/A r N/A rows N/A N/A gen coroutine save_doc N/A N/A self doc N/A N/A N/A Save/create a document to/in a given database. Response is a dict
        with id and rev of the saved doc.
         N/A body N/A json_encode doc N/A N/A _id doc N/A N/A url N/A N/A {0}/{1} format N/A self db_name N/A url_escape N/A doc N/A _id N/A r N/A N/A N/A self _http_put url body N/A N/A url N/A self db_name N/A r N/A N/A N/A self _http_post url body N/A N/A N/A gen Return r N/A N/A gen coroutine save_docs N/A N/A self docs all_or_nothing N/A False N/A N/A Save/create multiple documents.
        Response is a list of dicts with id and rev of the saved docs.
         N/A url N/A N/A {0}/_bulk_docs format N/A self db_name N/A body N/A json_encode N/A all_or_nothing docs all_or_nothing docs N/A r N/A N/A N/A self _http_post url body N/A N/A N/A gen Return r N/A N/A gen coroutine delete_doc N/A N/A self doc N/A N/A N/A Delete a document.
        The `doc` shall be a dict, at least having the keys `_id` and `_rev`.
         N/A N/A N/A _rev doc N/A _id doc N/A N/A N/A KeyError Missing id or revision information in doc N/A url N/A N/A {0}/{1}?rev={2} format N/A self db_name N/A url_escape N/A doc N/A _id N/A doc N/A _rev N/A r N/A N/A N/A self _http_delete url N/A N/A N/A gen Return r N/A N/A gen coroutine delete_docs N/A N/A self docs all_or_nothing N/A False N/A N/A Delete multiple documents.
        The `docs` shall be an array of dicts, each at least having the keys
        `_id` and `_rev`.
         N/A N/A any N/A N/A N/A _rev doc N/A _id doc N/A doc docs N/A N/A N/A KeyError Missing id or revision information in one or more docs N/A deleted N/A N/A _id _rev _deleted N/A doc N/A _id N/A doc N/A _rev True N/A doc docs N/A url N/A N/A {0}/_bulk_docs format N/A self db_name N/A body N/A json_encode N/A all_or_nothing docs all_or_nothing deleted N/A r N/A N/A N/A self _http_post url body N/A N/A N/A gen Return r N/A N/A gen coroutine get_attachment N/A N/A self doc attachment_name mimetype N/A None N/A N/A Get document attachment.
        The parameter `doc` should at least contain an `_id` key.
        If mimetype is not specified, `doc` shall contain an `_attachments`
        key with info about the named attachment. N/A N/A _id doc N/A N/A N/A ValueError Missing key named _id in doc N/A N/A mimetype N/A N/A N/A _attachments doc N/A N/A N/A ValueError No attachments in doc, cannot get content type of attachment N/A N/A N/A attachment_name N/A doc N/A _attachments N/A N/A N/A ValueError Document does not have an attachment by the given name N/A N/A mimetype N/A N/A N/A doc N/A _attachments N/A attachment_name N/A content_type N/A url N/A N/A {0}/{1}/{2} format N/A self db_name N/A url_escape N/A doc N/A _id N/A url_escape attachment_name N/A headers N/A Accept mimetype N/A r N/A N/A N/A self _http_get url headers headers N/A N/A N/A gen Return r N/A N/A gen coroutine save_attachment N/A N/A self doc attachment N/A N/A N/A Save an attachment to the specified doc.
        The attachment shall be a dict with keys: `mimetype`, `name`, `data`.
        The doc shall be a dict, at least having the key `_id`, and if doc is
        existing in the database, it shall also contain the key `_rev` N/A N/A any N/A N/A key attachment N/A key N/A mimetype name data N/A N/A N/A KeyError Attachment dict is missing one or more required keys N/A url N/A N/A {0}/{1}/{2}{3} format N/A self db_name N/A url_escape N/A doc N/A _id N/A url_escape N/A attachment N/A name N/A N/A _rev doc N/A N/A ?rev={0} format N/A doc N/A _rev N/A headers N/A Content-Type N/A attachment N/A mimetype N/A body N/A attachment N/A data N/A r N/A N/A N/A self _http_put url body headers headers N/A N/A N/A gen Return r N/A N/A gen coroutine delete_attachment N/A N/A self doc attachment_name N/A N/A N/A Delete a named attachment to the specified doc.
        The doc shall be a dict, at least with the keys: _id and _rev N/A N/A N/A _rev doc N/A _id doc N/A N/A N/A KeyError Missing id or revision information in doc N/A N/A url N/A N/A {0}/{1}/{2}?rev={3} format N/A self db_name N/A url_escape N/A doc N/A _id N/A url_escape attachment_name N/A doc N/A _rev N/A r N/A N/A N/A self _http_delete url N/A N/A N/A gen Return r N/A N/A gen coroutine view N/A N/A self design_doc_name view_name N/A kwargs N/A N/A Query a pre-defined view in the specified design doc.
        The following query parameters can be specified as keyword arguments.

        Limit query results to those with the specified key or list of keys:
          key=<key-value>
          keys=<list of keys>

        Limit query results to those following the specified startkey:
          startkey=<key-value>

        First document id to include in the output:
          startkey_docid=<document id>

        Limit query results to those previous to the specified endkey:
          endkey=<key-value>

        Last document id to include in the output:
          endkey_docid=<document id>

        Limit the number of documents in the output:
          limit=<number of docs>

        Prevent CouchDB from refreshing a stale view:
          stale="ok"
          stale="update_after"

        Reverse the output:
          descending=True
          descending=False  (default value)

        Note that the descending option is applied before any key filtering, so
        you may need to swap the values of the startkey and endkey options to
        get the expected results.

        Skip the specified number of docs in the query results:
          skip=<number>  (default value is 0)

        The group option controls whether the reduce function reduces to a set
        of distinct keys or to a single result row:
          group=True
          group=False  (default value)

          group_level=<number>

        Use the reduce function of the view:
          reduce=True  (default value)
          reduce=False

        Note that default value of reduce is True, only if a reduce function is
        defined for the view.

        Automatically fetch and include the document which emitted each view
        entry:
          include_docs=True
          include_docs=False  (default value)

        Determine whether the endkey is included in the result:
          inclusive_end=True  (default value)
          inclusive_end=False
         N/A url N/A N/A {0}/_design/{1}/_view/{2} format N/A self db_name design_doc_name view_name N/A r N/A N/A N/A self _view url kwargs N/A N/A N/A gen Return r N/A N/A gen coroutine view_all_docs N/A N/A self N/A kwargs N/A N/A Query the _all_docs view.
        Accepts the same keyword parameters as `view()`.
         N/A url N/A N/A {0}/_all_docs format N/A self db_name N/A r N/A N/A N/A self _view url kwargs N/A N/A N/A gen Return r N/A N/A gen coroutine temp_view N/A N/A self view_doc N/A kwargs N/A N/A Query a temporary view.
        The view_doc parameter is a dict with the view's map and reduce
        functions. N/A url N/A N/A {0}/_temp_view format N/A self db_name N/A r N/A N/A N/A self _view url body view_doc kwargs N/A N/A N/A gen Return r N/A N/A gen coroutine _view N/A N/A self url N/A kwargs N/A N/A body N/A N/A kwargs get body N/A N/A options N/A N/A kwargs N/A N/A N/A key value N/A N/A kwargs items N/A N/A N/A key body N/A N/A N/A N/A key keys N/A N/A N/A N/A body update N/A keys value N/A N/A value N/A url_escape N/A N/A key N/A startkey_docid endkey_docid value N/A json_encode value N/A N/A N/A options append N/A N/A = join N/A key value N/A options N/A N/A url N/A N/A {0}?{1} format url N/A N/A & join options N/A body N/A N/A r N/A N/A N/A self _http_post url N/A json_encode body N/A N/A r N/A N/A N/A self _http_get url N/A N/A N/A gen Return r N/A N/A gen coroutine _parse_response N/A N/A self resp N/A N/A N/A obj N/A json_decode N/A resp body to_code N/A N/A err N/A N/A N/A N/A N/A N/A not_found conflict 404 409 get err 400 N/A N/A N/A isinstance obj list N/A N/A item obj N/A N/A N/A error item N/A N/A N/A relax_exception N/A N/A httpclient HTTPError N/A to_code N/A item N/A error N/A item N/A reason resp N/A N/A N/A error obj N/A N/A N/A relax_exception N/A N/A httpclient HTTPError N/A resp code N/A obj N/A reason resp N/A N/A N/A rows obj N/A N/A row N/A obj N/A rows N/A N/A N/A error row N/A N/A N/A relax_exception N/A N/A httpclient HTTPError N/A to_code N/A row N/A error N/A row N/A error resp N/A obj N/A _parse_headers N/A N/A self resp N/A N/A N/A headers N/A code N/A resp code N/A N/A N/A headers update N/A resp headers N/A headers N/A _test_closed N/A N/A self N/A N/A N/A N/A self _closed N/A N/A N/A CouchException Database connection is closed. N/A _http_get N/A N/A self uri headers N/A None N/A N/A N/A N/A self _test_closed N/A N/A headers None N/A N/A headers N/A N/A req_args N/A N/A copy deepcopy N/A self request_args N/A N/A N/A N/A N/A req_args setdefault headers N/A update headers N/A N/A Accept N/A req_args N/A headers N/A N/A N/A N/A req_args N/A headers N/A Accept application/json N/A decode True N/A N/A decode False N/A req N/A N/A httpclient HTTPRequest N/A N/A self couch_url uri method GET req_args N/A N/A N/A resp N/A N/A N/A N/A self _client fetch req N/A N/A N/A N/A httpclient HTTPError N/A e N/A N/A N/A N/A e response N/A N/A N/A relax_exception e N/A resp N/A e response N/A N/A N/A gen Return N/A decode N/A N/A self _parse_response resp N/A resp body N/A N/A gen coroutine _http_post N/A N/A self uri body N/A kwargs N/A N/A N/A N/A self _test_closed N/A req_args N/A N/A copy deepcopy N/A self request_args N/A N/A N/A req_args update kwargs N/A N/A N/A N/A N/A req_args setdefault headers N/A update N/A Accept Content-Type application/json application/json N/A req N/A N/A httpclient HTTPRequest N/A N/A self couch_url uri method POST body body req_args N/A N/A N/A resp N/A N/A N/A N/A self _client fetch req N/A N/A N/A N/A httpclient HTTPError N/A e N/A N/A N/A N/A e response N/A N/A N/A relax_exception e N/A resp N/A e response N/A N/A N/A gen Return N/A N/A self _parse_response resp N/A N/A gen coroutine _http_put N/A N/A self uri body headers N/A None N/A N/A N/A N/A self _test_closed N/A N/A headers None N/A N/A headers N/A N/A req_args N/A N/A copy deepcopy N/A self request_args N/A N/A N/A N/A N/A req_args setdefault headers N/A update headers N/A N/A body N/A Content-Type N/A req_args N/A headers N/A N/A N/A N/A req_args N/A headers N/A Content-Type application/json N/A N/A Accept N/A req_args N/A headers N/A N/A N/A N/A req_args N/A headers N/A Accept application/json N/A req N/A N/A httpclient HTTPRequest N/A N/A self couch_url uri method PUT body body req_args N/A N/A N/A resp N/A N/A N/A N/A self _client fetch req N/A N/A N/A N/A httpclient HTTPError N/A e N/A N/A N/A N/A e response N/A N/A N/A relax_exception e N/A resp N/A e response N/A N/A N/A gen Return N/A N/A self _parse_response resp N/A N/A gen coroutine _http_delete N/A N/A self uri N/A N/A N/A N/A N/A self _test_closed N/A req_args N/A N/A copy deepcopy N/A self request_args N/A N/A N/A N/A N/A req_args setdefault headers N/A update N/A Accept application/json N/A req N/A N/A httpclient HTTPRequest N/A N/A self couch_url uri method DELETE req_args N/A N/A N/A resp N/A N/A N/A N/A self _client fetch req N/A N/A N/A N/A httpclient HTTPError N/A e N/A N/A N/A N/A e response N/A N/A N/A relax_exception e N/A resp N/A e response N/A N/A N/A gen Return N/A N/A self _parse_response resp N/A N/A gen coroutine _http_head N/A N/A self uri N/A N/A N/A N/A self _closed N/A N/A N/A CouchException Database connection is closed. N/A req_args N/A N/A copy deepcopy N/A self request_args N/A req N/A N/A httpclient HTTPRequest N/A N/A self couch_url uri method HEAD req_args N/A N/A N/A resp N/A N/A N/A N/A self _client fetch req N/A N/A N/A N/A httpclient HTTPError N/A e N/A N/A N/A N/A e response N/A N/A N/A relax_exception e N/A resp N/A e response N/A N/A N/A gen Return N/A N/A self _parse_headers resp N/A N/A gen coroutine N/A BlockingCouch N/A AsyncCouch N/A N/A Basic wrapper class for blocking operations on a CouchDB.

    Example usage::

        import couch

        db = couch.BlockingCouch('mytestdb')
        db.create_db()
        r = db.save_doc({'msg': 'My first document'})
        doc = db.get_doc(r['id'])
        db.delete_doc(doc)

    For any methods of this class: If an error is returned from the database,
    an appropriate CouchException is raised.

    BlockingCouch is a wrapper for AsyncCouch, database calls are run in a
    seperate IOLoop.
     __init__ N/A N/A self db_name couch_url N/A http://127.0.0.1:5984/ request_args N/A N/A Creates a `BlockingCouch`.

        All parameters are optional. Though `db_name` is required for most
        methods to work.

        Database name `db_name` may be set on init and changed later by
        `use()`. The url to the CouchDB including port number, with or
        without authentication credentials.

        Keyword arguments in `request_args` are applied when making requests
        to the database. By default the request argument `use_gzip` is True.
        Accessing a local CouchDB it may be relevant to set `use_gzip` to
        False.

        The request arguments may include `auth_username` and `auth_password`
        for basic authentication. See `httpclient.HTTPRequest` for other
        possible arguments.
         N/A io_loop N/A N/A N/A tornado ioloop IOLoop make_current False N/A N/A N/A AsyncCouch __init__ self db_name couch_url io_loop io_loop request_args N/A close N/A N/A self N/A N/A N/A Closes the CouchDB client, freeing any resources used. N/A N/A N/A self _closed N/A N/A N/A N/A AsyncCouch close self N/A N/A N/A N/A self io_loop close N/A __getattribute__ N/A N/A self name N/A N/A N/A N/A N/A attr N/A N/A object __getattribute__ self name N/A N/A N/A AttributeError N/A N/A N/A AttributeError N/A N/A '{}' object has no attribute '{}' format N/A N/A self __class__ __name__ name N/A N/A N/A name close N/A N/A name startswith _ N/A N/A hasattr attr __call__ N/A N/A attr wrapper N/A N/A clb N/A args kwargs N/A N/A fn N/A N/A functools partial clb args kwargs N/A N/A N/A N/A self io_loop run_sync fn N/A N/A N/A N/A functools partial wrapper attr N/A N/A CouchException N/A N/A httpclient HTTPError N/A N/A Base class for Couch specific exceptions __init__ N/A N/A self HTTPError msg N/A None N/A N/A N/A N/A N/A httpclient HTTPError __init__ self N/A HTTPError code msg N/A HTTPError response N/A N/A NotModified N/A CouchException N/A N/A HTTP Error 304 (Not Modified) __init__ N/A N/A self HTTPError N/A N/A N/A N/A N/A CouchException __init__ self HTTPError The document has not been modified since the last update. N/A N/A BadRequest N/A CouchException N/A N/A HTTP Error 400 (Bad Request) __init__ N/A N/A self HTTPError N/A N/A N/A N/A N/A CouchException __init__ self HTTPError The syntax of the request was invalid or could not be processed. N/A N/A NotFound N/A CouchException N/A N/A HTTP Error 404 (Not Found) __init__ N/A N/A self HTTPError N/A N/A N/A N/A N/A CouchException __init__ self HTTPError The requested resource was not found. N/A N/A MethodNotAllowed N/A CouchException N/A N/A HTTP Error 405 (Method Not Allowed) __init__ N/A N/A self HTTPError N/A N/A N/A N/A N/A CouchException __init__ self HTTPError The request was made using an incorrect request method; for example, a GET was used where a POST was required. N/A N/A Conflict N/A CouchException N/A N/A HTTP Error 409 (Conflict) __init__ N/A N/A self HTTPError N/A N/A N/A N/A N/A CouchException __init__ self HTTPError The request failed because of a database conflict. N/A N/A PreconditionFailed N/A CouchException N/A N/A HTTP Error 412 (Precondition Failed) __init__ N/A N/A self HTTPError N/A N/A N/A N/A N/A CouchException __init__ self HTTPError Could not create database - a database with that name already exists. N/A N/A InternalServerError N/A CouchException N/A N/A HTTP Error 500 (Internal Server Error) __init__ N/A N/A self HTTPError N/A N/A N/A N/A N/A CouchException __init__ self HTTPError The request was invalid and failed, or an error occurred within the CouchDB server that prevented it from processing the request. N/A N/A relax_exception N/A N/A e N/A N/A N/A Convert HTTPError exception to a Couch specific exception, if possible,
    or else return the unmodified exception. N/A N/A isinstance e N/A httpclient HTTPError N/A N/A N/A N/A e code 304 N/A N/A ce N/A NotModified e N/A N/A N/A N/A e code 400 N/A N/A ce N/A BadRequest e N/A N/A N/A N/A e code 404 N/A N/A ce N/A NotFound e N/A N/A N/A N/A e code 405 N/A N/A ce N/A MethodNotAllowed e N/A N/A N/A N/A e code 409 N/A N/A ce N/A Conflict e N/A N/A N/A N/A e code 412 N/A N/A ce N/A PreconditionFailed e N/A N/A N/A N/A e code 500 N/A N/A ce N/A InternalServerError e N/A N/A ce N/A CouchException e N/A N/A ce e N/A ce N/A