Skip to main content

A lightweight data visualization framework

Project description

Lence

Lightweight BI as code and data visualization framework. Write markdown pages with SQL queries, render charts and tables.

Quick Start

# Set up environment
make env

# Run development server
make dev

Then open http://localhost:8000

Usage

# Install lence
pip install lence

# Create a new project
lence init my-project
cd my-project

# Run development server
lence dev

Example Page

Create pages/dashboard.md:

# Sales Dashboard

{% query name="monthly" source="orders" %}
SELECT strftime(date, '%Y-%m') as month, SUM(amount) as total
FROM orders GROUP BY 1
{% /query %}

{% chart data="monthly" type="line" x="month" y="total" /%}

{% table data="monthly" /%}

Tech Stack

  • Backend: Python, FastAPI, DuckDB
  • Frontend: TypeScript, Lit, Vite
  • Syntax: Markdoc

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lence-0.2.0.tar.gz (561.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lence-0.2.0-py3-none-any.whl (595.0 kB view details)

Uploaded Python 3

File details

Details for the file lence-0.2.0.tar.gz.

File metadata

  • Download URL: lence-0.2.0.tar.gz
  • Upload date:
  • Size: 561.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lence-0.2.0.tar.gz
Algorithm Hash digest
SHA256 647d8cbd43fad1153bf2763b9cbd4c6f0b80ec79fd5753c73ad5fa7d82ff507f
MD5 e115af8c218267533748edc4008683af
BLAKE2b-256 46392e5358c40601cb570e8ea18c7e1b671333476eeb34dbbef88c41497c7f53

See more details on using hashes here.

Provenance

The following attestation bundles were made for lence-0.2.0.tar.gz:

Publisher: publish.yml on osks/lence

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lence-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: lence-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 595.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lence-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 98654dc98eace97f0c7d6368bb130d8ff2161bde623b1d1ce0b51a34ade01c8d
MD5 c7a5c11f6d8a37a151f2c3e7ae0e5716
BLAKE2b-256 67278426c4f131dac70b146ed9a9ba8403f52b6f358300cb24c59cf16a88ff07

See more details on using hashes here.

Provenance

The following attestation bundles were made for lence-0.2.0-py3-none-any.whl:

Publisher: publish.yml on osks/lence

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page