Module Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad Str body Expr Str Assign AttributeStore NameLoad attr NameLoad If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Str Str CompareIn AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad TryExcept body TryExcept body Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign NameStore Num TryExcept body Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign NameStore Num TryExcept body Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign NameStore Num If BoolOpAnd NameLoad NameLoad NameLoad CompareEq BinOpAdd NameLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str ListLoad TupleLoad Str Str Return ListLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass Expr Call NameLoad Str ListLoad TupleLoad Str Str Return ListLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore Call AttributeLoad NameLoad attr Str Dict Index SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Call AttributeLoad NameLoad attr NameLoad If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Num handlers ExceptHandler type NameLoad body Assign NameStore Num TryExcept body Assign NameStore Call AttributeLoad NameLoad attr BinOpMult Num Num handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore NameLoad While CompareGt NameLoad Num body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call NameLoad NameLoad Num If UnaryOpNot NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AugAssignSub NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index Str NameLoad Return TupleLoad NameLoad NameLoad decorator_list NameLoad decorator_list
N/A N/A tempfile N/A cgi base Cleaver compat urlencode parse_qsl backend CleaverBackend identity CleaverIdentityProvider SplitMiddleware N/A object N/A __init__ N/A N/A self app identity backend environ_key allow_override count_humans_only human_callback_token N/A cleaver False False __cleaver_human_verification__ N/A N/A 
        Makes a Cleaver instance available every request under
        ``environ['cleaver']``.

        :param identity any implementation of
                          ``identity.CleaverIdentityProvider`` or
                          a callable that emulates
                          ``identity.CleaverIdentityProvider.get_identity``.
        :param backend any implementation of
                            ``cleaver.backend.CleaverBackend``
        :param environ_key location where the Cleaver instance will be keyed in
                           the WSGI environ
        :param allow_override when True, specific variants can be overriden via
                              the request query string, e.g.,

                              http://mypythonapp.com?cleaver:button_size=small

                              Especially useful for tests and QA.
        :param count_humans_only when False, every request (including those
                                 originating from bots and web crawlers) is
                                 treated as a unique visit (defaults to False).
        :param human_callback_token when ``count_humans_only`` is True, this
                                    token in the URL will trigger a simple
                                    verification process for humans.
         N/A N/A self app app N/A N/A N/A N/A isinstance identity CleaverIdentityProvider N/A N/A callable identity N/A N/A N/A RuntimeError N/A %s must be callable or implement cleaver.identity.CleaverIdentityProvider identity N/A N/A N/A isinstance backend CleaverBackend N/A N/A N/A RuntimeError N/A %s must implement cleaver.backend.CleaverBackend backend N/A N/A self _identity identity N/A N/A self _backend backend N/A N/A self environ_key environ_key N/A N/A self allow_override allow_override N/A N/A self count_humans_only count_humans_only N/A N/A self human_callback_token human_callback_token N/A __call__ N/A N/A self environ start_response N/A N/A N/A cleaver N/A Cleaver environ N/A self _identity N/A self _backend count_humans_only N/A self count_humans_only N/A N/A environ N/A N/A self environ_key cleaver N/A N/A self allow_override N/A N/A N/A N/A self _handle_variant_overrides environ N/A N/A N/A self count_humans_only N/A N/A N/A environ get REQUEST_METHOD POST N/A N/A self human_callback_token N/A N/A environ get PATH_INFO N/A N/A N/A fp length N/A N/A SplitMiddleware _copy_body_to_tempfile environ N/A N/A N/A environ setdefault CONTENT_LENGTH length N/A fs N/A N/A cgi FieldStorage fp fp environ environ keep_blank_values True N/A N/A N/A N/A N/A x N/A int N/A N/A N/A fs getlist x N/A 0 N/A N/A N/A N/A IndexError ValueError N/A N/A x 0 N/A N/A N/A y N/A int N/A N/A N/A fs getlist y N/A 0 N/A N/A N/A N/A IndexError ValueError N/A N/A y 0 N/A N/A N/A z N/A int N/A N/A N/A fs getlist z N/A 0 N/A N/A N/A N/A IndexError ValueError N/A N/A z 0 N/A N/A x y z N/A N/A x y z N/A N/A N/A N/A N/A self _backend mark_human N/A cleaver identity N/A e N/A N/A N/A self _backend all_experiments N/A N/A variant N/A N/A N/A self _backend get_variant N/A cleaver identity N/A e name N/A variant N/A N/A N/A N/A N/A self _backend mark_participant N/A e name variant N/A N/A start_response 204 No Content N/A N/A Content-Type text/plain N/A N/A N/A N/A N/A N/A KeyError ValueError N/A N/A N/A N/A start_response 401 Unauthorized N/A N/A Content-Type text/plain N/A N/A N/A N/A N/A self app environ start_response N/A _handle_variant_overrides N/A N/A self environ N/A N/A N/A parsed N/A dict N/A parse_qsl N/A N/A environ get QUERY_STRING N/A qs N/A N/A parsed copy N/A k parsed N/A N/A N/A N/A k startswith cleaver: N/A N/A N/A N/A N/A environ setdefault cleaver.override N/A N/A N/A N/A N/A k split cleaver: N/A 1 N/A N/A qs pop k N/A N/A cleaver.override environ N/A N/A N/A environ N/A QUERY_STRING N/A urlencode qs N/A _copy_body_to_tempfile N/A N/A cls environ N/A N/A N/A 
        Copy wsgi.input to a tempfile so it can be reused.
         N/A N/A N/A length N/A int N/A N/A environ get CONTENT_LENGTH 0 N/A N/A N/A ValueError N/A N/A length 0 N/A N/A N/A fileobj N/A N/A tempfile SpooledTemporaryFile N/A 1024 1024 N/A N/A N/A AttributeError N/A N/A fileobj N/A N/A tempfile TemporaryFile N/A length N/A N/A remaining length N/A N/A remaining 0 N/A N/A data N/A N/A N/A environ N/A wsgi.input read N/A min remaining 65536 N/A N/A data N/A N/A N/A IOError N/A Client disconnected (%s more bytes were expected) remaining N/A N/A N/A fileobj write data N/A remaining N/A len data N/A N/A N/A fileobj seek 0 N/A N/A environ N/A wsgi.input fileobj N/A N/A fileobj length N/A classmethod N/A