Lucent-Pack
Pack a Shiny app and a WebAssembly R environment into a static site.
Installation
pip install lucent-pack
# OR
micromamba install lucent-pack
Usage
- Create a wasm environment with your favorite package manager.
micromamba create -f environment.yaml --platform=emscripten-wasm32
# Sample environment.yaml
name: shinyapp-env
channels:
- https://repo.prefix.dev/emscripten-forge-4x
- conda-forge
dependencies:
# Minimum requirements
- r-main
- r-shiny
# Any additional packages required for the app
- r-bslib
- r-plotly
- Build the site.
lucent build --prefix-dir /path/to/wasm/env/ --app /path/to/app --outdir ./_site
- Check results.
lucent serve ./_site # the output directory
Development
Requirements:
- python
- pip
- nodejs
pip install -e .
# Browser runtime — required before `python -m build` (wheel)
cd js && npm ci && npm run build
mkdir -p ../src/lucent_pack/static/lucent/dist
cp -a dist/. ../src/lucent_pack/static/lucent/dist/
The hatch wheel hook fails the build if the bundles (src/lucent_pack/static/lucent/dist/) are missing.
CLI
| Command | Purpose |
|---|---|
lucent build |
Pack an existing --prefix-dir + --app into --outdir |
lucent serve |
Serve a built site directory (python -m http.server style) |
Metadata
Release files for lucent-pack 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lucent_pack-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for lucent_pack-0.1.1-py3-none-any.whl |
Release files / lucent_pack-0.1.1-py3-none-any.whl
| Download URL | lucent_pack-0.1.1-py3-none-any.whl |
|---|---|
| Size | 170.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8289e78344082c76b24797716476b9350ec1ec298eed88283e73c9d536cb55d3
|
|
BLAKE2b-256 checksum How to use checksums |
c0bf183b19d02d3bfc1f7e8dcd1929e9a32be97da5da3579275a56e2b10286b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for lucent-pack 0.1.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.