How tableau/tabpy works
TabPy is a Tableau Analytics Extension server: Tableau sends table-calculation requests to the server, which dispatches them to saved Python functions and returns results. The repository also provides endpoint management, evaluation, authentication, Arrow Flight, and Python client tools. The graph follows explicit README claims and shown calls/import references; unsampled route and storage details are kept at subsystem level where wiring is not evidenced.
Main entry points: app.py Application server · callbacks.py State callbacks · python_service.py Python service · state.py Endpoint state
Components 18
Server runtime
- Server entrypoint
tabpy/tabpy.py - Application server
tabpy/tabpy_server/app/app.py - Server settings
tabpy/tabpy_server/app/app_parameters.py
Python execution
- Query API
tabpy/tabpy_server/handlers/query_plane_handler.py - Evaluation API
tabpy/tabpy_server/handlers/evaluation_plane_handler.py - Python service
tabpy/tabpy_server/psws/python_service.py - Query objects
tabpy/tabpy_tools/query_object.py - Arrow Flight
tabpy/tabpy_server/app/arrow_server.py
Endpoint management
- Management API
tabpy/tabpy_server/handlers/management_handler.py - Endpoint API
tabpy/tabpy_server/handlers/endpoint_handler.py - Endpoint state
tabpy/tabpy_server/management/state.py - State callbacks
tabpy/tabpy_server/psws/callbacks.py - Endpoint files
tabpy/tabpy_server/common/endpoint_file_mgr.py
Security
- Request authentication
tabpy/tabpy_server/handlers/base_handler.py - JWT validation
tabpy/tabpy_server/handlers/jwt_auth.py
Client tools
- Python client
tabpy/tabpy_tools/client.py - REST transport
tabpy/tabpy_tools/rest_client.py
Other components
- Tableau
Connections 16
- Tableau → Query API: sends calculations
- Server entrypoint → Application server: starts
tabpy/tabpy.py - Application server → Server settings: uses settings
tabpy/tabpy_server/app/app.py - Application server → Python service: initializes
tabpy/tabpy_server/app/app.py - Application server → State callbacks: initializes
tabpy/tabpy_server/app/app.py - Application server → Request authentication: registers handlers
tabpy/tabpy_server/app/app.py - Query API → Python service: queries
tabpy/tabpy_server/handlers/query_plane_handler.py - Python service → Query objects: executes objects
tabpy/tabpy_server/psws/python_service.py - Application server → Arrow Flight: starts server
tabpy/tabpy_server/app/app.py - Management API → Endpoint state: manages endpoints
tabpy/tabpy_server/handlers/management_handler.py - Endpoint API → Endpoint state: updates endpoints
tabpy/tabpy_server/handlers/endpoint_handler.py - State callbacks → Endpoint state: reads state
tabpy/tabpy_server/psws/callbacks.py - State callbacks → Endpoint files: cleans files
tabpy/tabpy_server/psws/callbacks.py - State callbacks → Python service: dispatches changes
tabpy/tabpy_server/psws/callbacks.py - Request authentication → JWT validation: validates tokens
tabpy/tabpy_server/handlers/base_handler.py - Python client → REST transport: uses transport
tabpy/tabpy_tools/client.py