Skip to main content

Boring Semantic Layer (BSL)

The Boring Semantic Layer (BSL) is a lightweight semantic layer based on Ibis.

Key Features:

  • Lightweight: pip install boring-semantic-layer
  • Ibis-powered: Built on top of Ibis, supporting any database engine that Ibis integrates with (DuckDB, Snowflake, BigQuery, PostgreSQL, and more)
  • MCP-friendly: Perfect for connecting LLMs to structured data sources

Quick Start

pip install 'boring-semantic-layer[examples]'

1. Define your ibis input table

import ibis

# Create a simple in-memory table
flights_tbl = ibis.memtable({
    "origin": ["JFK", "LAX", "JFK", "ORD", "LAX"],
    "carrier": ["AA", "UA", "AA", "UA", "AA"]
})

2. Define a semantic table

from boring_semantic_layer import to_semantic_table
flights = (
    to_semantic_table(flights_tbl, name="flights")
    .with_dimensions(origin=lambda t: t.origin)
    .with_measures(flight_count=lambda t: t.count())
)

3. Query it

result_df = flights.group_by("origin").aggregate("flight_count").execute()

📚 Documentation

→ View the full documentation


This project is a joint effort by xorq-labs and boringdata.

We welcome feedback and contributions!


Freely inspired by the awesome Malloy project. We loved the vision, just took the Python route.

Metadata

Release files for boring-semantic-layer 0.3.19

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for boring-semantic-layer 0.3.19
File Size Uploaded Provenance Actions
boring_semantic_layer-0.3.19.tar.gz 1.4 MB Without provenance Details for boring_semantic_layer-0.3.19.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for boring-semantic-layer 0.3.19
File Interpreter ABI Platform Actions
boring_semantic_layer-0.3.19-py3-none-any.whl Python 3 none any Details for boring_semantic_layer-0.3.19-py3-none-any.whl

Total release size: 1.9 MB

Release files / boring_semantic_layer-0.3.19.tar.gz

Download URL boring_semantic_layer-0.3.19.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
4d99ec12701e299fa3da14692f642c455e2fdef67d37806cabca2e43c5174c72
BLAKE2b-256 checksum
How to use checksums
dc3d79c4e9d1fc1cf1055d74f0eb33cca82288381e766ea797f7427a3e5fd144
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / boring_semantic_layer-0.3.19-py3-none-any.whl

Download URL boring_semantic_layer-0.3.19-py3-none-any.whl
Size 422.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e62a85c4e51fb326ba32ff138bad1d9ba111d43622282b26164e1225f816335e
BLAKE2b-256 checksum
How to use checksums
4582521c7d13c014e20239e36d251c30985400f9fc1fc45569c08718aff56dc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for boring-semantic-layer 0.3.19

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.19 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page