A Python SDK that enables Livedocs to run helper functions for various elements, such as charts, tables, SQL queries, and text.
-
Install
uv(latest version) Download and install from the official documentation: https://docs.astral.sh/uv/getting-started/installation/ -
Install Python (version 3.12) Download and install from: https://www.python.org/downloads/
Before installing the SDK, ensure your Python environment is set up. uv handles dependency resolution and installation, so no separate pip, setuptools, or wheel setup is required.
If you’ll be actively working on the SDK, install it in editable mode so your environment always reflects the latest local changes.
Make sure this command is run in the same virtual environment used by Middleman:
uv pip install -e .To install the SDK as a standalone dependency directly from GitHub:
uv pip install git+https://github.com/livedocs-io/sdk.gitTo test chart functions directly from the client:
-
Install testing dependencies:
uv pip install ".[test]" -
Run tests:
CORE_BASE_URL=http://localhost:4000 flask --app tests.vega-api run