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.

Usage

# Install lence
pip install lence

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

# Run development server
lence edit

Then open http://localhost:8000

Example Page

Create pages/dashboard.md:

# Sales Dashboard

```sql monthly
SELECT strftime(date, '%Y-%m') as month, SUM(amount) as total
FROM orders GROUP BY 1
```

{% line_chart data="monthly" x="month" y="total" /%}

{% datatable data="monthly" /%}

Development

# Set up environment
make env

# Run development server
make dev

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.3.4.tar.gz (586.4 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.3.4-py3-none-any.whl (623.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lence-0.3.4.tar.gz
Algorithm Hash digest
SHA256 d30e061bcb34ff1b5815a25e916eb5b4385d0b346a8ddcfceeafbed608f131cc
MD5 1965e7c28a4f8894f29c346cc5772088
BLAKE2b-256 073862bc1562d512cf0045dffd85622e069ef7541d08dae72e13a9d4c10bff1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for lence-0.3.4.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.3.4-py3-none-any.whl.

File metadata

  • Download URL: lence-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 623.8 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.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 157e0e49e6a7f8a5bae63cdf45b59e4f34670e6e10f6b7bcdea7970dcc8703ae
MD5 28ec126d2876ebc294016a8a5b854e58
BLAKE2b-256 237a0140d71014ceb03769426d97f2208da403462d8313290640c70dbbe5b984

See more details on using hashes here.

Provenance

The following attestation bundles were made for lence-0.3.4-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