Skip to main content

s-layer-flint-charts

Semantic-layer-aware Flint charts for agents: types, grain guard and show_chart tool

This repository holds two packages:

  • s-layer-flint-charts (Python, repository root): maps semantic-layer field metadata to Flint types, guards chart grain and serves the show_chart tool.
  • @s-layer/flint-charts (TypeScript, ts/): renders those charts in agent chat UIs.

Installation

pip install s-layer-flint-charts

Development

Quality Gates

Before committing, all code must pass:

prek run --all-files  # Runs typecheck, lint, format, test

Or run individually:

uv run basedpyright  # Type checking (strict mode)
uv run ruff check    # Linting
uv run ruff format --check  # Formatting
uv run pytest        # Tests

Setup

# Install dependencies, with every extra
uv sync --dev --all-extras

# The sidecar tests run flint-chart-mcp from ts/node_modules
pnpm --dir ts install

# Install git hooks
prek install

TypeScript package

cd ts
pnpm install
pnpm lint && pnpm typecheck && pnpm test
pnpm test:browser  # Playwright, in Chromium (pnpm exec playwright install chromium first)

Releases

The packages are released apart. Tag vX.Y.Z releases the Python package to PyPI; tag ts-vX.Y.Z, after setting that version in ts/package.json and VERSION in ts/src/index.ts, releases the npm package.

License

MIT

Metadata

Release files for s-layer-flint-charts 0.1.0

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

Source distribution (sdist)

Source distribution for s-layer-flint-charts 0.1.0
File Size Uploaded Provenance Actions
s_layer_flint_charts-0.1.0.tar.gz 28.3 kB With provenance Details for s_layer_flint_charts-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for s-layer-flint-charts 0.1.0
File Interpreter ABI Platform Actions
s_layer_flint_charts-0.1.0-py3-none-any.whl Python 3 none any Details for s_layer_flint_charts-0.1.0-py3-none-any.whl

Total release size: 61.6 kB

Release files / s_layer_flint_charts-0.1.0.tar.gz

Download URL s_layer_flint_charts-0.1.0.tar.gz
Size 28.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d3fce13d030325905493e22baeac33e701e737f8b4bb28427cc5559ee5df3a24
BLAKE2b-256 checksum
How to use checksums
187a1acbe94da9218d66512a2e6b23cb9a63d8d870c0eae7cb4fafc343d710f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Release files / s_layer_flint_charts-0.1.0-py3-none-any.whl

Download URL s_layer_flint_charts-0.1.0-py3-none-any.whl
Size 33.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f97bee6f57e31f897b05fe00c5520b797f6c8e703d4759ec7b7d9fb7877f3d6a
BLAKE2b-256 checksum
How to use checksums
f56b46c5fec1f1d56adb0f5d9f61852a5066844167cd02e427adad73da456ac4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Security for s-layer-flint-charts 0.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for s_layer_flint_charts-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

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.1.0 This release

2 release files Full 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