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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lence-0.4.0.tar.gz.
File metadata
- Download URL: lence-0.4.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e0b6a036b2fef246a319147cd0d9c2cb235f4c04cbf4fc475ec3abd2d1cc524
|
|
| MD5 |
5ddabd8133479126de1631aa9f118700
|
|
| BLAKE2b-256 |
b104c3b90c8d608921bd6ae160ab0c69198dc36ed60987394003312a9eaa7fa1
|
Provenance
The following attestation bundles were made for lence-0.4.0.tar.gz:
Publisher:
publish.yml on osks/lence
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lence-0.4.0.tar.gz -
Subject digest:
7e0b6a036b2fef246a319147cd0d9c2cb235f4c04cbf4fc475ec3abd2d1cc524 - Sigstore transparency entry: 929065676
- Sigstore integration time:
-
Permalink:
osks/lence@6ed8bbf0be8b0935eebcf8f7e138f46873894a99 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/osks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6ed8bbf0be8b0935eebcf8f7e138f46873894a99 -
Trigger Event:
release
-
Statement type:
File details
Details for the file lence-0.4.0-py3-none-any.whl.
File metadata
- Download URL: lence-0.4.0-py3-none-any.whl
- Upload date:
- Size: 640.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b7f37995f787364736f138f172ab6c9723ecd4d04fd1d34c263891ff6c355b7
|
|
| MD5 |
0bbd816970d1543dc3a6053fec9be4aa
|
|
| BLAKE2b-256 |
d346dd391c5d036f0ac67dc9f62e1cb74db9b836e4552ba62976a4fa5711c5f7
|
Provenance
The following attestation bundles were made for lence-0.4.0-py3-none-any.whl:
Publisher:
publish.yml on osks/lence
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lence-0.4.0-py3-none-any.whl -
Subject digest:
9b7f37995f787364736f138f172ab6c9723ecd4d04fd1d34c263891ff6c355b7 - Sigstore transparency entry: 929065684
- Sigstore integration time:
-
Permalink:
osks/lence@6ed8bbf0be8b0935eebcf8f7e138f46873894a99 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/osks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6ed8bbf0be8b0935eebcf8f7e138f46873894a99 -
Trigger Event:
release
-
Statement type: