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:7700

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.4.1.tar.gz (598.9 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.4.1-py3-none-any.whl (640.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lence-0.4.1.tar.gz
Algorithm Hash digest
SHA256 12699724aa2f80d119ff2cb07a98751c0b43fb8c3b8d36c3ea336ddb0cc52101
MD5 4b824c61b7a9a36cb70d4024523f580b
BLAKE2b-256 75416d4cda92fea974b55726a6ba9968b5a7911c1d04def308cf4a7703e11bc4

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lence-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 640.2 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.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1397a7aac31b43f02a26b4684e9f6ec813a5471a2548aa25e032e3b25992664e
MD5 c007a825bab8c29a542e43c441fd80bf
BLAKE2b-256 05c5a0e03e1900eb8491c36b5097739abd38aaf712f8fa5248a2927a5ba0e209

See more details on using hashes here.

Provenance

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