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
Metadata
Release files for lence 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| lence-0.4.1.tar.gz | 598.9 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lence-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.2 MB
Release files / lence-0.4.1.tar.gz
| Download URL | lence-0.4.1.tar.gz |
|---|---|
| Size | 598.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12699724aa2f80d119ff2cb07a98751c0b43fb8c3b8d36c3ea336ddb0cc52101
|
|
BLAKE2b-256 checksum How to use checksums |
75416d4cda92fea974b55726a6ba9968b5a7911c1d04def308cf4a7703e11bc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Feb 8, 2026.
Transparency logRelease files / lence-0.4.1-py3-none-any.whl
| Download URL | lence-0.4.1-py3-none-any.whl |
|---|---|
| Size | 640.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1397a7aac31b43f02a26b4684e9f6ec813a5471a2548aa25e032e3b25992664e
|
|
BLAKE2b-256 checksum How to use checksums |
05c5a0e03e1900eb8491c36b5097739abd38aaf712f8fa5248a2927a5ba0e209
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Feb 8, 2026.
Transparency logSecurity for lence 0.4.1
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for lence-0.4.1.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 Feb 8, 2026.
Transparency logA 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.