facett-demo
facett's components in a Streamlit app. Every facett component — graphs, maps, tables, charts, timelines, a docs viewer, a 3-D model viewer, a simulation view — is the real Rust component compiled to WebAssembly and drawn on WebGPU, grouped like the native facett demo's tabs (Grafer, Kartor, Tabeller & diagram, Bygg & jobb, App & UI). The graph components carry the demo's size + generator: up to 100 000 nodes (the universe to 1 000 000) generated inside the wasm, so no graph crosses from Python.
No server is needed. With the optional [korp] extra the app also shows LIVE data
from a korp-server over gRPC.
- The components on their own:
facett - Live demo of the native facett demo, in the browser: https://nordisk.codeberg.page/facett/
- Source: https://codeberg.org/nordisk/facett (this app is
py/)
Install and run
pip install facett-demo
facett-demo # http://127.0.0.1:8501
facett-demo run --server.port 8502 # any Streamlit option after `run`
facett-demo --version # facett-demo <version> (<git hash>)
facett-demo about # build banner + which tabs read which korp RPC
facett-demo starts Streamlit in the same Python process (no streamlit executable
needed on PATH) and binds to 127.0.0.1 unless told otherwise — the demo is not
authenticated, so exposing it is an explicit choice (--server.address).
Open it in a browser with WebGPU in a secure context (localhost or https). Chrome
on Linux needs --enable-unsafe-webgpu --enable-features=Vulkan.
Live korp data (optional)
pip install 'facett-demo[korp]' # + grpcio, protobuf
KORP_SERVER=host:50051 facett-demo
| tab | component | korp-server RPC |
|---|---|---|
| 🗺 korp · Map | osm2d |
Assets + MapQuery |
| 🕸 korp · Graph | graphnav |
Graph |
| 📊 korp · Population | table + stat-grid |
IcebergTables + TablePreview + Population |
Without the extra the app runs offline: the 🎨 Komponenter tab of every group needs no server, and the korp tabs mount the same components on the gallery's generated/fixture data under a banner that says so. With the extra installed and the server down, every korp tab shows the server's own error instead of a blank pane.
How it is built
The facett wheel carries the wasm bundles; this package is pure Python (the app,
its payload table and the error-code catalog). Both wheels are built in a pinned
container with the network off and verified byte for byte against their own RECORD
before release; see the repository's .nornir/pypi-publish.md.
License
MIT (the text is in LICENSE, shipped in this package). Versions published up to and including 0.2.0 (crates.io 0.1.x/0.2.0 and PyPI facett/facett-demo 0.2.0) were released under MIT OR Apache-2.0 and stay so. From 0.2.1 facett is MIT only.
Metadata
Release files for facett-demo 0.2.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 | Actions |
|---|---|---|---|---|
| facett_demo-0.2.1.tar.gz | 83.7 kB | Without provenance | Details for facett_demo-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| facett_demo-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for facett_demo-0.2.1-py3-none-any.whl |
Total release size: 173.4 kB
Release files / facett_demo-0.2.1.tar.gz
| Download URL | facett_demo-0.2.1.tar.gz |
|---|---|
| Size | 83.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9655ed0ec9c76a300fc9eb12b78c617a1cdf6f225face692f4df997844b6c70
|
|
BLAKE2b-256 checksum How to use checksums |
49c23f4a7d451bcf9141e6ac10ac89cb4b8831814150c66d8e08f549fb03715b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
facett-ops/0.2.0 (publish-pypi)
|
Release files / facett_demo-0.2.1-py3-none-any.whl
| Download URL | facett_demo-0.2.1-py3-none-any.whl |
|---|---|
| Size | 89.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a5d665f58a6307217ae41b13bca729c3c718d770044c43005095e17e744787a9
|
|
BLAKE2b-256 checksum How to use checksums |
ce41aa6ede35d2786d5139d51bff8728f67db42f60295fc819b57b1188e72a8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
facett-ops/0.2.0 (publish-pypi)
|
Security for facett-demo 0.2.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.