Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num If UnaryOpNot NameLoad body Raise NameLoad If CompareLt Call NameLoad NameLoad Num body Raise Call NameLoad Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareLt Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Import alias While NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad NameLoad body Break Assign TupleStore NameStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad attr Assign NameStore ListLoad Assign NameStore Dict For NameStore NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore IfExp UnaryOpNot AttributeLoad NameLoad attr NameLoad BoolOpOr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad TryExcept body Assign NameStore Call NameLoad AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd CompareEq NameLoad Num CompareEq NameLoad Str body Continue If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str AugAssignAdd NameStore BinOpAdd Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Slice If CompareGt AttributeLoad NameLoad attr Num body If CompareGt NameLoad AttributeLoad NameLoad attr body Assign NameStore ListComp SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num comprehension NameStore NameLoad Assign NameStore BinOpAdd Call NameLoad AttributeLoad NameLoad attr Call NameLoad ListComp BinOpAdd Call NameLoad NameLoad Num comprehension NameStore NameLoad While BoolOpAnd CompareGt BinOpAdd NameLoad Num AttributeLoad NameLoad attr Call NameLoad NameLoad body AugAssignSub NameStore BinOpSub Call NameLoad SubscriptLoad NameLoad Index Num Num Assign NameStore SubscriptLoad NameLoad Slice Num If CompareGt Call NameLoad NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Pass Return TupleLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num If BoolOpAnd CompareEq NameLoad Str Call AttributeLoad NameLoad attr TupleLoad Str Str body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num If CompareIn NameLoad NameLoad body Return TupleLoad NameLoad NameLoad Str Str If BoolOpAnd CompareEq NameLoad Str Call AttributeLoad NameLoad attr Str body If AttributeLoad NameLoad attr body Return TupleLoad NameLoad NameLoad Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num orelse Return BinOpAdd TupleLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Str body If BoolOpAnd CompareNotIn AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr CompareGt AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpAnd Call NameLoad NameLoad NameLoad CompareGt Call NameLoad NameLoad Num CompareLt AttributeLoad NameLoad attr Call NameLoad NameLoad CompareGt AttributeLoad NameLoad attr Num body Assign NameStore BinOpSub AttributeLoad NameLoad attr Num While CompareGtE NameLoad Num body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr Str body Break If Call AttributeLoad NameLoad attr Str body Return TupleLoad NameLoad Str NameLoad Str AugAssignSub NameStore Num If AttributeLoad NameLoad attr body Return TupleLoad NameLoad NameLoad Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num orelse Return BinOpAdd TupleLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad Str Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str NameLoad If CompareIn Str AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad Str Str NameLoad Str Call NameLoad NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str If CompareGt AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr
N/A N/A Jedi mini server for deoplete-jedi

This script allows Jedi to run using the Python interpreter that is found in
the user's environment instead of the one Neovim is using.

Jedi seems to accumulate latency with each completion.  To deal with this, the
server is restarted after 50 completions.  This threshold is relatively high
considering that deoplete-jedi caches completion results.  These combined
should make deoplete-jedi's completions pretty fast and responsive.
 __future__ unicode_literals N/A os N/A sys N/A struct N/A argparse N/A subprocess N/A logging N/A log N/A N/A logging getLogger __name__ N/A N/A N/A log addHandler N/A logging NullHandler N/A N/A N/A cPickle pickle N/A N/A N/A ImportError N/A N/A pickle N/A jedi_path N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A N/A os path dirname N/A N/A N/A os path dirname __file__ jedi N/A _types N/A import class function globalstmt instance statement keyword module param property bool bytes complex dict list float int object set slice str tuple mappingproxy member_descriptor getset_descriptor method_descriptor imprt def var var var keywd mod arg prop byte cmplx obj dict cattr cprop cdef StreamError N/A Exception N/A N/A Error in reading/writing streams. N/A StreamEmpty N/A StreamError N/A N/A Empty stream data N/A stream_read N/A N/A pipe N/A N/A N/A Read data from the pipe. N/A buffer N/A getattr pipe buffer pipe N/A header N/A N/A buffer read 4 N/A N/A header N/A N/A StreamEmpty N/A N/A N/A len header 4 N/A N/A N/A StreamError Incorrect byte length N/A length N/A N/A N/A struct unpack I header N/A 0 N/A data N/A N/A buffer read length N/A N/A N/A len data length N/A N/A N/A StreamError Got less data than expected N/A N/A N/A pickle loads data N/A stream_write N/A N/A pipe obj N/A N/A N/A Write data to the pipe. N/A data N/A N/A pickle dumps obj 2 N/A header N/A N/A struct pack I N/A len data N/A buffer N/A getattr pipe buffer pipe N/A N/A N/A buffer write N/A header data N/A N/A N/A pipe flush N/A Server N/A object N/A N/A Server class

    This is created when this script is ran directly.
     __init__ N/A N/A self desc_len short_types show_docstring N/A 0 False False N/A N/A N/A self desc_len desc_len N/A N/A self use_short_types short_types N/A N/A self show_docstring show_docstring N/A _loop N/A N/A self N/A N/A N/A jedi N/A True N/A N/A data N/A stream_read N/A sys stdin N/A N/A N/A isinstance data tuple N/A N/A N/A N/A source line col filename data N/A N/A N/A log debug Line: %r, Col: %r, Filename: %r line col filename N/A completions N/A N/A N/A N/A jedi Script source line col filename completions N/A out N/A N/A tmp_filecache N/A N/A c completions N/A N/A N/A name type_ desc abbr N/A N/A self parse_completion c tmp_filecache N/A kind N/A N/A N/A self use_short_types type_ N/A N/A N/A _types get type_ type_ N/A N/A N/A out append N/A N/A c module_path name type_ desc abbr kind N/A N/A stream_write N/A sys stdout out N/A run N/A N/A self N/A N/A N/A N/A N/A log debug N/A sys path N/A N/A N/A N/A N/A self _loop N/A N/A N/A StreamEmpty N/A N/A N/A N/A log debug Input closed N/A N/A Exception N/A N/A N/A N/A log exception exception N/A call_signature N/A N/A self comp N/A N/A N/A Construct the function's call signature.

        comp.docstring() is not reliable and we don't need the entire
        docstring.

        Returns a tuple of (full, abbr) call signatures.
         N/A params N/A N/A params_abbr N/A N/A N/A N/A length N/A len N/A comp name N/A N/A i p N/A enumerate N/A comp params N/A N/A desc N/A N/A N/A p description strip N/A N/A N/A i 0 N/A desc self N/A N/A N/A N/A \n desc N/A N/A desc N/A N/A desc replace \n \x0A N/A length N/A N/A len desc 2 N/A N/A N/A params append desc N/A params_abbr N/A params N/A N/A N/A N/A self desc_len 0 N/A N/A N/A length N/A self desc_len N/A N/A params_abbr N/A N/A N/A N/A x split = 1 N/A 0 N/A x params_abbr N/A length N/A N/A len N/A comp name N/A sum N/A N/A N/A len x 2 N/A x params_abbr N/A N/A N/A N/A length 3 N/A self desc_len N/A len params_abbr N/A N/A length N/A N/A len N/A params_abbr N/A -1 3 N/A params_abbr N/A params_abbr N/A -1 N/A N/A N/A len params N/A len params_abbr N/A N/A N/A N/A params_abbr append ... N/A N/A N/A AttributeError N/A N/A N/A N/A N/A N/A {}({}) format N/A comp name N/A N/A ,  join params N/A N/A {}({}) format N/A comp name N/A N/A ,  join params_abbr N/A parse_completion N/A N/A self comp cache N/A N/A N/A Return a tuple describing the completion.

        Returns (name, type, description, abbreviated)
         N/A name N/A comp name N/A N/A type_ desc N/A N/A N/A x strip N/A x N/A N/A N/A comp description split : 1 N/A N/A N/A type_ instance N/A N/A desc startswith N/A builtins. posix. N/A N/A builtin_type N/A N/A N/A desc rsplit . 1 N/A -1 N/A N/A builtin_type _types N/A N/A N/A name builtin_type N/A N/A N/A type_ class N/A N/A desc startswith builtins. N/A N/A N/A self show_docstring N/A N/A N/A name type_ N/A N/A comp docstring N/A N/A N/A self call_signature comp N/A 1 N/A N/A N/A N/A name type_ N/A N/A self call_signature comp N/A N/A type_ function N/A N/A N/A N/A N/A comp module_path cache N/A comp line N/A N/A comp line 1 N/A N/A N/A os path exists N/A comp module_path N/A N/A N/A open N/A comp module_path r fp N/A N/A N/A cache N/A N/A comp module_path N/A N/A fp readlines N/A lines N/A N/A cache get N/A comp module_path N/A N/A N/A isinstance lines list N/A N/A len lines 1 N/A N/A comp line N/A len lines N/A N/A comp line 1 N/A N/A i N/A N/A comp line 2 N/A N/A i 0 N/A N/A line N/A N/A N/A lines N/A i lstrip N/A N/A N/A N/A line startswith @ N/A N/A N/A N/A N/A line startswith @property N/A N/A N/A name property desc N/A i 1 N/A N/A self show_docstring N/A N/A N/A name type_ N/A N/A comp docstring N/A N/A N/A self call_signature comp N/A 1 N/A N/A N/A N/A name type_ N/A N/A self call_signature comp N/A N/A name type_ N/A N/A Client N/A object N/A N/A Client object

    This will be used by deoplete-jedi to interact with the server.
     N/A max_completion_count 50 __init__ N/A N/A self desc_len short_types show_docstring debug N/A 0 False False False N/A N/A N/A self _server None N/A N/A self _count 0 N/A N/A self env N/A N/A N/A os environ copy N/A N/A N/A N/A self env update N/A PYTHONPATH jedi_path N/A N/A VIRTUAL_ENV N/A os environ N/A N/A N/A N/A self env N/A VIRTUAL_ENV N/A N/A os getenv VIRTUAL_ENV N/A N/A self cmd N/A python -u __file__ --desc-length N/A str desc_len N/A short_types N/A N/A N/A N/A N/A self cmd append --short-types N/A show_docstring N/A N/A N/A N/A N/A self cmd append --docstrings N/A debug N/A N/A N/A N/A N/A self cmd append --debug N/A N/A N/A self restart N/A shutdown N/A N/A self N/A N/A N/A Shut down the server. N/A N/A N/A N/A self _server None N/A N/A N/A self _server returncode None N/A N/A N/A N/A N/A N/A self _server stdin close N/A restart N/A N/A self N/A N/A N/A Start or restart the server

        If a server is already running, shut it down.
         N/A N/A N/A self shutdown N/A N/A self _server N/A N/A subprocess Popen N/A self cmd stdin N/A subprocess PIPE stdout N/A subprocess PIPE env N/A self env N/A completions N/A N/A self N/A args N/A N/A Get completions from the server.

        If the number of completions already performed reaches a threshold,
        restart the server.
         N/A N/A N/A self _count N/A self max_completion_count N/A N/A N/A self _count 0 N/A N/A N/A self restart N/A N/A self _count 1 N/A N/A stream_write N/A N/A self _server stdin args N/A N/A stream_read N/A N/A self _server stdout N/A N/A N/A N/A __name__ __main__ N/A N/A parser N/A N/A argparse ArgumentParser N/A N/A N/A parser add_argument --desc-length type int N/A N/A N/A parser add_argument --short-types action store_true N/A N/A N/A parser add_argument --docstrings action store_true N/A N/A N/A parser add_argument --debug action store_true N/A args N/A N/A parser parse_args N/A N/A args debug N/A N/A N/A N/A log removeHandler N/A logging NullHandler N/A handler N/A N/A logging FileHandler /tmp/jedi-server.log N/A N/A N/A handler setLevel N/A logging DEBUG N/A N/A N/A log addHandler handler N/A N/A N/A log setLevel N/A logging DEBUG N/A s N/A Server N/A args desc_length N/A args short_types N/A args docstrings N/A N/A N/A s run