General Tech

Type Server Protocol

The Type Server Protocol (TSP) is a JSON-RPC protocol for asking a type server for Python analysis data, using Language Server Protocol (LSP) data shapes and conventions. It maintains type-analysis state for a workspace and answers requests for protocol version, snapshots, Python search paths, import resolution, and type queries. TSP uses semantic version strings for client/server compatibility checks and supports optional extra read-only connections. A client starts a type server and communicates with it over a main JSON-RPC connection, and can also open additional local channels for read-only requests in multi-connection mode. This mode is optional and should only be used when benefiting from concurrent requests.

Read the full article at github.com →