tinybird-python-sdk
Python SDK for Tinybird
What it is and what it does
The Tinybird Python SDK is a client library for programmatically interacting with Tinybird's data ingestion and API services. It provides both synchronous and asynchronous interfaces for sending NDJSON data to Tinybird Data Sources and making HTTP requests to Tinybird APIs. The package includes handlers for direct event logging and integration with litellm for capturing LLM call metadata.
The SDK manages in-memory buffering, handles rate limits automatically via the backoff dependency, and supports both standard requests and async operations via aiohttp. It includes non-blocking queue-based logging handlers to avoid blocking application threads. The documentation indicates that for managing Tinybird workspaces, data sources, or pipes, the tinybird-cli tool should be used instead.
Use it for:
- Stream application events and metrics into Tinybird for real-time analytics and monitoring.
- Capture LLM API calls from litellm with automatic metadata extraction and logging to Tinybird.
- Integrate Python logging into a Tinybird Data Source for centralized log aggregation.
- Ingest bulk NDJSON data from external sources via the Tinybird API without CLI tooling.
- Build non-blocking logging pipelines using queue-based handlers to avoid blocking application threads.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Ingest NDJSON data into Tinybird Data Sources and send requests to Tinybird APIs from Python, with support for both synchronous and asynchronous operations and logging integration.
Yes, if you are already using Tinybird and need to ingest data or logs from Python. The package is actively maintained, has low install friction, and covers common use cases. However, verify the license terms before use—the package does not declare an SPDX license—and confirm minimum Python version compatibility with your environment.
Install
tinybird-python-sdk on PyPI
pip
pip install tinybird-python-sdkuv
uv add tinybird-python-sdkpoetry
poetry add tinybird-python-sdkInstalling tinybird-python-sdk
Before you install
Low install friction with three common runtime dependencies (requests, aiohttp, backoff). Actively maintained with recent releases; last commit 2026-06-29 and latest release 2025-06-06 indicate ongoing development.
License in practice
License status is unclear—no SPDX identifier or raw license text is declared in the package metadata, so you cannot verify the terms before use.
Quickstart
pip install tinybird-python-sdk
from tinybird_python_sdk import Datasource
with Datasource('my_datasource', 'my_token') as ds:
ds << {'key': 'value', 'key1': 'value1'}
Requires a valid Tinybird token and an existing Data Source in your Tinybird workspace.
Verify before relying
- Minimum Python version requirement is not specified in the fact sheet.
- Whether the package is suitable for production workloads or still in early development.
- Rate limit handling behavior and retry strategy details beyond backoff dependency.
- Module structure and import paths for accessing Datasource and AsyncDatasource classes.
Package facts
| License | not declared (unclear) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — requests, aiohttp, backoff |
| Maintenance | actively maintained — 434 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 181,585/month — #10,120 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: tinybird_python_sdk-0.3.7-py3-none-any.whl
Tags
More Database packages
psycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
redisPython client library for connecting to and…
permissive · top 1,000 on PyPI
ydbYDB Python SDK is the official client library…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
sqlparsesqlparse tokenizes SQL text into a tree of…
permissive · top 1,000 on PyPI
dbt-adaptersProvides base adapter protocols and shared…
permissive · top 1,000 on PyPI
pytest-tinybirdA pytest plugin that automatically posts test…
permissive · top 15,000 on PyPI
tinybirdCommand-line interface for managing Tinybird…
unclear · top 15,000 on PyPI
python-json-loggerFormats Python logging output as JSON, making…
permissive · top 1,000 on PyPI
json-loggingConfigures Python's standard logging module to…
permissive · top 5,000 on PyPI
azure-kusto-ingestIngest data into Azure Kusto clusters from…
permissive · top 5,000 on PyPI
jsonformatterFormats Python logging output as JSON, enabling…
permissive · top 15,000 on PyPI
cloudwatchA Python logging handler that sends log events…
permissive · top 15,000 on PyPI
google-cloud-bigquery-loggingPython client library for Google Cloud BigQuery…
permissive · top 15,000 on PyPI
jsonlinesSimplifies reading and writing jsonlines…
permissive · top 5,000 on PyPI
logging-azure-restProvides a Python logging handler that…
permissive · top 5,000 on PyPI